summaryrefslogtreecommitdiffstats
path: root/ldap/servers/slapd/ava.c
diff options
context:
space:
mode:
authorRich Megginson <rmeggins@redhat.com>2009-01-13 18:28:34 +0000
committerRich Megginson <rmeggins@redhat.com>2009-01-13 18:28:34 +0000
commitc9896c27d2bbac2d10b888ae55ac6686b13f1d59 (patch)
treeedf84db4b1d24bc2a46087ab3ccb420dc29f3bbf /ldap/servers/slapd/ava.c
parenta8bc418842a31fedb9a52fdec423a56736c8d371 (diff)
downloadds-c9896c27d2bbac2d10b888ae55ac6686b13f1d59.tar.gz
ds-c9896c27d2bbac2d10b888ae55ac6686b13f1d59.tar.xz
ds-c9896c27d2bbac2d10b888ae55ac6686b13f1d59.zip
Resolves: bug 204966
Bug Description: WinSync ignores entry if NT attributes are added later. Reviewed by: nkinder (Thanks!) Fix Description: If we are replaying a modify operation, we need to check if the ntUser objectclass is being added along with the other attributes that tell the sync service to sync this entry. If the objectclass is being added or replaced, we check the existing entry to see if it is still a sync-able entry. If it is, we call process_replay_add to add the entry. I changed this function to accept a Slapi_Entry to add rather than the operation structure. Finally, I had to change the way we send the Account Control flags to take into account an entry that may have been added as a result of a modify operation. I fixed a memory leak when setting the Slapi_Attr attribute type, and cleaned up a compiler warning. NOTE: There will be no clear text password to send (unless the userPassword was modified in the same modify operation). This means the account will be added to Windows, and will be enabled, but will be essentially unusable - the user cannot login - until either the user modifies the password on the directory server side, or the administrator resets the password. Platforms tested: RHEL5 Flag Day: no Doc impact: yes - we will have to document the new winsync behavior
Diffstat (limited to 'ldap/servers/slapd/ava.c')
-rw-r--r--ldap/servers/slapd/ava.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/ldap/servers/slapd/ava.c b/ldap/servers/slapd/ava.c
index 78dc456d..1acc5ef2 100644
--- a/ldap/servers/slapd/ava.c
+++ b/ldap/servers/slapd/ava.c
@@ -50,8 +50,6 @@
#endif
#include "slap.h"
-static void strcpy_special_undo();
-
int
get_ava(
BerElement *ber,