diff options
-rw-r--r-- | source3/passdb/pdb_ldap.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c index 0bebcc7c2c..2272aedf13 100644 --- a/source3/passdb/pdb_ldap.c +++ b/source3/passdb/pdb_ldap.c @@ -3977,6 +3977,11 @@ static NTSTATUS ldapsam_lookup_rids(struct pdb_methods *methods, goto done; } + if (num_rids == 0) { + result = NT_STATUS_NONE_MAPPED; + goto done; + } + for (i=0; i<num_rids; i++) attrs[i] = SID_NAME_UNKNOWN; |