summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2017-12-18 14:39:11 +0100
committerSimon Rettberg2017-12-18 14:39:11 +0100
commitc007b927e30fbd748c64a6ead2aee44a718bb077 (patch)
treebdb80d8d18e7dfc921ee8d2939bbc5024d1babc6
parent[proxy] More ugly hacks to support sssd for user names containing '@' (diff)
downloadldadp-c007b927e30fbd748c64a6ead2aee44a718bb077.tar.gz
ldadp-c007b927e30fbd748c64a6ead2aee44a718bb077.tar.xz
ldadp-c007b927e30fbd748c64a6ead2aee44a718bb077.zip
Ugly hack ... rework this part
-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)