diff options
author | Sumit Bose <sbose@redhat.com> | 2012-07-04 16:19:03 +0200 |
---|---|---|
committer | Alexander Bokovoy <abokovoy@redhat.com> | 2012-07-06 13:06:16 +0300 |
commit | 76d809574bfb43cba2248225870644937546e33e (patch) | |
tree | 53135ef6cbb528452452d6ab6a258ec48f14d70d | |
parent | abe40284cf5dda1e34e3ba73711448f61eea67b9 (diff) | |
download | freeipa-76d809574bfb43cba2248225870644937546e33e.tar.gz freeipa-76d809574bfb43cba2248225870644937546e33e.tar.xz freeipa-76d809574bfb43cba2248225870644937546e33e.zip |
ipasam: replace testing code
-rw-r--r-- | daemons/ipa-sam/ipa_sam.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/daemons/ipa-sam/ipa_sam.c b/daemons/ipa-sam/ipa_sam.c index 50d2b0ea7..153733dbf 100644 --- a/daemons/ipa-sam/ipa_sam.c +++ b/daemons/ipa-sam/ipa_sam.c @@ -100,7 +100,7 @@ bool sid_peek_check_rid(const struct dom_sid *exp_dom_sid, const struct dom_sid char *escape_ldap_string(TALLOC_CTX *mem_ctx, const char *s); /* available in libsmbconf.so */ extern const struct dom_sid global_sid_Builtin; /* available in libsecurity.so */ bool secrets_store(const char *key, const void *data, size_t size); /* available in libpdb.so */ -#define LDAP_SUFFIX "dc=ipa,dc=devel" /* FIXME !!! */ + #define LDAP_PAGE_SIZE 1024 #define LDAP_OBJ_SAMBASAMACCOUNT "ipaNTUserAttrs" #define LDAP_OBJ_TRUSTED_DOMAIN "ipaNTTrustedDomain" @@ -1045,12 +1045,12 @@ static bool ldapsam_search_users(struct pdb_methods *methods, state->connection = ldap_state->smbldap_state; if ((acct_flags != 0) && ((acct_flags & ACB_NORMAL) != 0)) - state->base = LDAP_SUFFIX; + state->base = ldap_state->ipasam_privates->base_dn; else if ((acct_flags != 0) && ((acct_flags & (ACB_WSTRUST|ACB_SVRTRUST|ACB_DOMTRUST)) != 0)) - state->base = LDAP_SUFFIX; + state->base = ldap_state->ipasam_privates->base_dn; else - state->base = LDAP_SUFFIX; + state->base = ldap_state->ipasam_privates->base_dn; state->acct_flags = acct_flags; state->base = talloc_strdup(search, state->base); @@ -1204,7 +1204,7 @@ static bool ldapsam_search_grouptype(struct pdb_methods *methods, return false; } - state->base = talloc_strdup(search, LDAP_SUFFIX); + state->base = talloc_strdup(search, ldap_state->ipasam_privates->base_dn); state->connection = ldap_state->smbldap_state; state->scope = LDAP_SCOPE_SUBTREE; state->filter = talloc_asprintf(search, "(&(objectclass=%s)" |