summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-06-09 22:09:14 +0200
committerVolker Lendecke <vl@samba.org>2009-06-09 22:40:36 +0200
commit078443bc672ad5dd02fd47c91f52173b0879102e (patch)
tree18abab10fe0365eed01e56797c27b34f53926761 /source3/passdb
parentfae921e93821329605c8fecacda8eebb768af2f8 (diff)
downloadsamba-078443bc672ad5dd02fd47c91f52173b0879102e.tar.gz
samba-078443bc672ad5dd02fd47c91f52173b0879102e.tar.bz2
samba-078443bc672ad5dd02fd47c91f52173b0879102e.zip
Some more fields in pdb_ads_init_ads_from_sam()
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/pdb_ads.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/source3/passdb/pdb_ads.c b/source3/passdb/pdb_ads.c
index 4e63297436..c3e9189645 100644
--- a/source3/passdb/pdb_ads.c
+++ b/source3/passdb/pdb_ads.c
@@ -273,6 +273,26 @@ static bool pdb_ads_init_ads_from_sam(struct pdb_ads_state *state,
existing, mem_ctx, pnum_mods, pmods, "dBCSPwd",
data_blob_const(pdb_get_lanman_passwd(sam), NT_HASH_LEN));
+ ret &= tldap_make_mod_fmt(
+ existing, mem_ctx, pnum_mods, pmods, "userAccountControl",
+ "%d", ads_acb2uf(pdb_get_acct_ctrl(sam)));
+
+ ret &= tldap_make_mod_fmt(
+ existing, mem_ctx, pnum_mods, pmods, "homeDirectory",
+ "%s", pdb_get_homedir(sam));
+
+ ret &= tldap_make_mod_fmt(
+ existing, mem_ctx, pnum_mods, pmods, "homeDrive",
+ "%s", pdb_get_dir_drive(sam));
+
+ ret &= tldap_make_mod_fmt(
+ existing, mem_ctx, pnum_mods, pmods, "scriptPath",
+ "%s", pdb_get_logon_script(sam));
+
+ ret &= tldap_make_mod_fmt(
+ existing, mem_ctx, pnum_mods, pmods, "profilePath",
+ "%s", pdb_get_profile_path(sam));
+
return ret;
}