summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Ambach <ambi@samba.org>2013-06-18 10:43:38 +0200
committerMichael Adam <obnox@samba.org>2013-06-21 10:44:21 +0200
commit01e094b53ff87ca83993e59196efa2c7adca1eec (patch)
tree6753ef8f9d8f770d46a2e2d9dad0aafd6df6f4d6
parent987de8a971bf9730c92406234d4a0f3a23a92dda (diff)
downloadsamba-01e094b53ff87ca83993e59196efa2c7adca1eec.tar.gz
samba-01e094b53ff87ca83993e59196efa2c7adca1eec.tar.bz2
samba-01e094b53ff87ca83993e59196efa2c7adca1eec.zip
s3:passdb/pdb_ldap make the module handle well-known
overwrite the passdb defaults and let this module handle well-knowns Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
-rw-r--r--source3/passdb/pdb_ldap.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c
index 0905ab4eeb..fd90db3295 100644
--- a/source3/passdb/pdb_ldap.c
+++ b/source3/passdb/pdb_ldap.c
@@ -6435,6 +6435,11 @@ static NTSTATUS pdb_init_ldapsam_common(struct pdb_methods **pdb_method, const c
return NT_STATUS_OK;
}
+static bool ldapsam_is_responsible_for_wellknown(struct pdb_methods *m)
+{
+ return true;
+}
+
/**********************************************************************
Initialise the normal mode for pdb_ldap
*********************************************************************/
@@ -6472,6 +6477,8 @@ NTSTATUS pdb_ldapsam_init_common(struct pdb_methods **pdb_method,
(*pdb_method)->search_users = ldapsam_search_users;
(*pdb_method)->search_groups = ldapsam_search_groups;
(*pdb_method)->search_aliases = ldapsam_search_aliases;
+ (*pdb_method)->is_responsible_for_wellknown =
+ ldapsam_is_responsible_for_wellknown;
if (lp_parm_bool(-1, "ldapsam", "trusted", False)) {
(*pdb_method)->enum_group_members = ldapsam_enum_group_members;