[Cpu-users] user.c patch
Brought to you by:
matheny
|
From: John D. <jpd...@ys...> - 2004-01-07 20:09:06
|
This eliminates a "no such object" error when changing the login name and
another attribute at the same time when the USER_BASE is different from the
GROUP_BASE and/or the USER_CN_STRING is different from the GROUP_CN_STRING.
Maybe you should consider issuing a warning message when cpu.conf contains the
old CN_STRING setting?
Thanks,
John
--- user.c.orig Wed Jan 7 14:23:15 2004
+++ user.c Wed Jan 7 14:24:14 2004
@@ -78,7 +78,7 @@
fprintf (stderr, "Not yet implemented: stub\n");
}
globalLdap->passent->pw_name = globalLdap->new_username;
- newdn = buildDn (GROUPADD, globalLdap->new_username);
+ newdn = buildDn (USERADD, globalLdap->new_username);
globalLdap->dn = newdn;
}
|