diff options
author | Bo Yang <boyang@novell.com> | 2009-02-26 17:44:33 +0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-02-27 09:28:46 -0800 |
commit | a54520fd4d357eadccb5e101a5b74b50e6d7ab25 (patch) | |
tree | 1e729beefed9da07b019531a6b1f842f4d8440e4 /source3/winbindd/idmap_ldap.c | |
parent | 0025caa9bd2bf52bf873b38ef4b8e3814579ad17 (diff) | |
download | samba-a54520fd4d357eadccb5e101a5b74b50e6d7ab25.tar.gz samba-a54520fd4d357eadccb5e101a5b74b50e6d7ab25.tar.xz samba-a54520fd4d357eadccb5e101a5b74b50e6d7ab25.zip |
Initialize the id_map status in idmap_ldap to avoid surprise
Diffstat (limited to 'source3/winbindd/idmap_ldap.c')
-rw-r--r-- | source3/winbindd/idmap_ldap.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/winbindd/idmap_ldap.c b/source3/winbindd/idmap_ldap.c index c86a5023d0c..7224589076e 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) { |