summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBo Yang <boyang@novell.com>2009-02-26 17:44:33 +0800
committerJeremy Allison <jra@samba.org>2009-02-27 09:28:46 -0800
commita54520fd4d357eadccb5e101a5b74b50e6d7ab25 (patch)
tree1e729beefed9da07b019531a6b1f842f4d8440e4
parent0025caa9bd2bf52bf873b38ef4b8e3814579ad17 (diff)
downloadsamba-a54520fd4d357eadccb5e101a5b74b50e6d7ab25.tar.gz
samba-a54520fd4d357eadccb5e101a5b74b50e6d7ab25.tar.bz2
samba-a54520fd4d357eadccb5e101a5b74b50e6d7ab25.zip
Initialize the id_map status in idmap_ldap to avoid surprise
-rw-r--r--source3/winbindd/idmap_ldap.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/winbindd/idmap_ldap.c b/source3/winbindd/idmap_ldap.c
index c86a5023d0..7224589076 100644
--- a/source3/winbindd/idmap_ldap.c
+++ b/source3/winbindd/idmap_ldap.c
@@ -935,6 +935,10 @@ static NTSTATUS idmap_ldap_unixids_to_sids(struct idmap_domain *dom,
multi = True;
}
+ for (i = 0; ids[i]; i++) {
+ ids[i]->status = ID_UNKNOWN;
+ }
+
again:
if (multi) {
@@ -1156,6 +1160,10 @@ static NTSTATUS idmap_ldap_sids_to_unixids(struct idmap_domain *dom,
multi = True;
}
+ for (i = 0; ids[i]; i++) {
+ ids[i]->status = ID_UNKNOWN;
+ }
+
again:
if (multi) {