1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

Do not pull samAccountName twice

This commit is contained in:
Volker Lendecke 2009-06-09 21:46:04 +02:00
parent a18341dab9
commit 9af9a43464

View File

@ -158,7 +158,6 @@ static NTSTATUS pdb_ads_init_sam_from_ads(struct pdb_methods *m,
goto fail;
}
pdb_set_username(sam, str, PDB_SET);
TALLOC_FREE(str);
if (pdb_ads_pull_time(entry, "lastLogon", &tmp_time)) {
pdb_set_logon_time(sam, tmp_time, PDB_SET);
@ -173,12 +172,6 @@ static NTSTATUS pdb_ads_init_sam_from_ads(struct pdb_methods *m,
pdb_set_pass_last_set_time(sam, tmp_time, PDB_SET);
}
str = tldap_talloc_single_attribute(entry, "samAccoutName",
talloc_tos());
if (str != NULL) {
pdb_set_username(sam, str, PDB_SET);
}
str = tldap_talloc_single_attribute(entry, "displayName",
talloc_tos());
if (str != NULL) {