Fix LDAP SN generation.

If person has only name return it as last name. Required for LDAP SN
field generation.

Change-Id: Ief66d67db1bf0a1782ca427f059f26ef6161503d