summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
authorChristian Ambach <ambi@samba.org>2013-06-18 16:30:31 +0200
committerMichael Adam <obnox@samba.org>2013-06-21 10:44:24 +0200
commit2d2d13ee6104f21fa4a3ec845f216084a24da0b2 (patch)
tree8c1dcd76fc0ab865db18672a533829e86fad0763 /source3/passdb
parent212baedcd579aa584e31225932afe4a3a07c891e (diff)
downloadsamba-2d2d13ee6104f21fa4a3ec845f216084a24da0b2.tar.gz
samba-2d2d13ee6104f21fa4a3ec845f216084a24da0b2.tar.bz2
samba-2d2d13ee6104f21fa4a3ec845f216084a24da0b2.zip
s3:passdb add a gid argument to pdb_create_builtin_alias
make it possible to skip the allocation of a new gid from winbind by specifying the gid to be used Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/ABI/pdb-0.sigs2
-rw-r--r--source3/passdb/pdb_util.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/passdb/ABI/pdb-0.sigs b/source3/passdb/ABI/pdb-0.sigs
index 9c5c773941..ccb371b207 100644
--- a/source3/passdb/ABI/pdb-0.sigs
+++ b/source3/passdb/ABI/pdb-0.sigs
@@ -74,7 +74,7 @@ pdb_build_fields_present: uint32_t (struct samu *)
pdb_capabilities: uint32_t (void)
pdb_copy_sam_account: bool (struct samu *, struct samu *)
pdb_create_alias: NTSTATUS (const char *, uint32_t *)
-pdb_create_builtin_alias: NTSTATUS (uint32_t)
+pdb_create_builtin_alias: NTSTATUS (uint32_t, gid_t)
pdb_create_dom_group: NTSTATUS (TALLOC_CTX *, const char *, uint32_t *)
pdb_create_user: NTSTATUS (TALLOC_CTX *, const char *, uint32_t, uint32_t *)
pdb_decode_acct_ctrl: uint32_t (const char *)
diff --git a/source3/passdb/pdb_util.c b/source3/passdb/pdb_util.c
index 0ac6594d4c..31fd018e8c 100644
--- a/source3/passdb/pdb_util.c
+++ b/source3/passdb/pdb_util.c
@@ -81,7 +81,7 @@ NTSTATUS pdb_create_builtin(uint32_t rid)
if (!lp_winbind_nested_groups() || !winbind_ping()) {
return NT_STATUS_PROTOCOL_UNREACHABLE;
}
- status = pdb_create_builtin_alias(rid);
+ status = pdb_create_builtin_alias(rid, 0);
}
return status;
}