mirror of
https://github.com/samba-team/samba.git
synced 2025-03-09 08:58:35 +03:00
Clean up this a little - add comments describing a bit of what is going on
here. (This used to be commit 88455313f6551a75eff4df2f0ba91430948c1c78)
This commit is contained in:
parent
b017064cec
commit
593e0b5d00
@ -963,13 +963,14 @@ static BOOL init_sam_from_ldap (struct ldapsam_privates *ldap_state,
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* If so configured, try and get the values from LDAP
|
||||
*/
|
||||
|
||||
if (lp_ldap_trust_ids() && (get_unix_attributes(ldap_state,sampass, entry))) {
|
||||
if (!lp_ldap_trust_ids() || (!get_unix_attributes(ldap_state, sampass, entry))) {
|
||||
|
||||
} else {
|
||||
|
||||
/* These values MAY be in LDAP, but they can also be retrieved through
|
||||
* sys_getpw*() which is how we're doing it
|
||||
/*
|
||||
* Otherwise just ask the system getpw() calls.
|
||||
*/
|
||||
|
||||
pw = getpwnam_alloc(username);
|
||||
|
Loading…
x
Reference in New Issue
Block a user