diff options
author | Christof Schmitt <christof.schmitt@us.ibm.com> | 2013-02-21 12:31:19 -0700 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2013-03-09 06:30:22 +0100 |
commit | c07c167edb71568ab18f016346e60803d1195d42 (patch) | |
tree | d30ccbc0b317b83bf9eda322fc0ba3c182cdd0c5 /source3/winbindd/idmap_ldap.c | |
parent | 86d09ce779fdc9d6ebbbe44b25656808ab37ee14 (diff) | |
download | samba-c07c167edb71568ab18f016346e60803d1195d42.tar.gz samba-c07c167edb71568ab18f016346e60803d1195d42.tar.bz2 samba-c07c167edb71568ab18f016346e60803d1195d42.zip |
s3-winbindd: Move idmap_fetch_secret to idmap_utils.c for reuse
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3/winbindd/idmap_ldap.c')
-rw-r--r-- | source3/winbindd/idmap_ldap.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/source3/winbindd/idmap_ldap.c b/source3/winbindd/idmap_ldap.c index 03872e7ab1..0520f213ef 100644 --- a/source3/winbindd/idmap_ldap.c +++ b/source3/winbindd/idmap_ldap.c @@ -39,30 +39,6 @@ #include "smbldap.h" #include "passdb/pdb_ldap_schema.h" -static char *idmap_fetch_secret(const char *backend, - const char *domain, const char *identity) -{ - char *tmp, *ret; - int r; - - r = asprintf(&tmp, "IDMAP_%s_%s", backend, domain); - - if (r < 0) - return NULL; - - /* make sure the key is case insensitive */ - if (!strupper_m(tmp)) { - SAFE_FREE(tmp); - return NULL; - } - - ret = secrets_fetch_generic(tmp, identity); - - SAFE_FREE(tmp); - - return ret; -} - struct idmap_ldap_context { struct smbldap_state *smbldap_state; char *url; |