From c007b927e30fbd748c64a6ead2aee44a718bb077 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 18 Dec 2017 14:39:11 +0100 Subject: Ugly hack ... rework this part --- proxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3-55-g7522