diff options
-rw-r--r-- | proxy.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -689,7 +689,7 @@ static void response_replacePal(server_t *server, struct PartialAttributeList ** elifDELATTR(loginshell, loginShell); elifDELATTR(uidnumber, uidNumber, !server->plainLdap &&); elifDEL(mail); - elifDELATTR(cn, cn); + elifDELATTR(cn, cn, !iequals(server->map.uid, &s_cn) &&); elifDEL(memberof); else if (iequals(&(*pal)->type, &server->map.homemount)) { // homeDirectory is set in AD - it can either be a local path (in which case it's useless) |