mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
pdb_ldap: Do not skip accounts without a sambaAcctFlags value
We allow this to mean a sambaAcctFlags value of zero in other parts of the code and by allowing these users to show up in a search, we can read and correct them during the classicupgrade, rather than not know they exist at all. Most parts of the code do not look for ACB_NORMAL, which is why these users appear to work. Andrew Bartlett Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
parent
2c047198ca
commit
1165776d86
@ -4452,11 +4452,11 @@ static bool ldapuser2displayentry(struct ldap_search_state *state,
|
||||
|
||||
vals = ldap_get_values(ld, entry, "sambaAcctFlags");
|
||||
if ((vals == NULL) || (vals[0] == NULL)) {
|
||||
DEBUG(5, ("\"sambaAcctFlags\" not found\n"));
|
||||
return False;
|
||||
acct_flags = ACB_NORMAL;
|
||||
} else {
|
||||
acct_flags = pdb_decode_acct_ctrl(vals[0]);
|
||||
ldap_value_free(vals);
|
||||
}
|
||||
acct_flags = pdb_decode_acct_ctrl(vals[0]);
|
||||
ldap_value_free(vals);
|
||||
|
||||
if ((state->acct_flags != 0) &&
|
||||
((state->acct_flags & acct_flags) == 0))
|
||||
|
Loading…
Reference in New Issue
Block a user