summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--proxy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proxy.c b/proxy.c
index e345ed9..39b9297 100644
--- a/proxy.c
+++ b/proxy.c
@@ -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)