summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-02-15 19:09:10 +0100
committerVolker Lendecke <vl@samba.org>2011-02-15 21:12:22 +0100
commit7a2cbdafa87cee0af41b07b6eb4a1ab2ff155b8b (patch)
tree1441e5b3f3a32ae055ff7debbf36d0a57e7c51d0 /source3
parent4b354e67fc7adce5152c73697bbf02a1aac69b20 (diff)
downloadsamba-7a2cbdafa87cee0af41b07b6eb4a1ab2ff155b8b.tar.gz
samba-7a2cbdafa87cee0af41b07b6eb4a1ab2ff155b8b.tar.bz2
samba-7a2cbdafa87cee0af41b07b6eb4a1ab2ff155b8b.zip
s3: Add userWorkstations and userParameters to pdb_ads
Diffstat (limited to 'source3')
-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 58e30a1600..1ff8042a9e 100644
--- a/source3/passdb/pdb_ads.c
+++ b/source3/passdb/pdb_ads.c
@@ -256,6 +256,18 @@ static NTSTATUS pdb_ads_init_sam_from_priv(struct pdb_methods *m,
pdb_set_acct_desc(sam, str, PDB_SET);
}
+ str = tldap_talloc_single_attribute(entry, "userWorkstations",
+ talloc_tos());
+ if (str != NULL) {
+ pdb_set_workstations(sam, str, PDB_SET);
+ }
+
+ str = tldap_talloc_single_attribute(entry, "userParameters",
+ talloc_tos());
+ if (str != NULL) {
+ pdb_set_munged_dial(sam, str, PDB_SET);
+ }
+
if (!tldap_pull_binsid(entry, "objectSid", &sid)) {
DEBUG(10, ("Could not pull SID\n"));
goto fail;
@@ -374,6 +386,14 @@ static bool pdb_ads_init_ads_from_sam(struct pdb_ads_state *state,
existing, mem_ctx, pmods, pnum_mods, "description",
"%s", pdb_get_acct_desc(sam));
+ ret &= tldap_make_mod_fmt(
+ existing, mem_ctx, pmods, pnum_mods, "userWorkstations",
+ "%s", pdb_get_workstations(sam));
+
+ ret &= tldap_make_mod_fmt(
+ existing, mem_ctx, pmods, pnum_mods, "userParameters",
+ "%s", pdb_get_munged_dial(sam));
+
fail:
return ret;
}