diff options
author | Jeremy Allison <jra@samba.org> | 2014-08-13 16:36:28 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-08-14 21:27:13 +0200 |
commit | 8bbf901f9349e9b33caa24fd2a2333c060952646 (patch) | |
tree | dff4d60c3e4c89ea8d597c6d4b4e130a77fd1dfc /source3/utils | |
parent | 51bea0b767b4f1e76a7008604f4dd0788a5edeb2 (diff) | |
download | samba-8bbf901f9349e9b33caa24fd2a2333c060952646.tar.gz samba-8bbf901f9349e9b33caa24fd2a2333c060952646.tar.xz samba-8bbf901f9349e9b33caa24fd2a2333c060952646.zip |
Replace all uses of iniparser with tiniparser.
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/ntlm_auth.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/utils/ntlm_auth.c b/source3/utils/ntlm_auth.c index f0cd24bf58..f907742a26 100644 --- a/source3/utils/ntlm_auth.c +++ b/source3/utils/ntlm_auth.c @@ -36,7 +36,7 @@ #include "auth/credentials/credentials.h" #include "librpc/crypto/gse.h" #include "smb_krb5.h" -#include <iniparser.h> +#include "lib/util/tiniparser.h" #include "../lib/crypto/arcfour.h" #include "libads/kerberos_proto.h" #include "nsswitch/winbind_client.h" @@ -416,23 +416,23 @@ static bool get_require_membership_sid(void) { int get_pam_winbind_config() { int ctrl = 0; - dictionary *d = NULL; + struct tiniparser_dictionary *d = NULL; if (!opt_pam_winbind_conf || !*opt_pam_winbind_conf) { opt_pam_winbind_conf = PAM_WINBIND_CONFIG_FILE; } - d = iniparser_load(discard_const_p(char, opt_pam_winbind_conf)); + d = tiniparser_load(opt_pam_winbind_conf); if (!d) { return 0; } - if (iniparser_getboolean(d, discard_const_p(char, "global:krb5_auth"), false)) { + if (tiniparser_getboolean(d, "global:krb5_auth", false)) { ctrl |= WINBIND_KRB5_AUTH; } - iniparser_freedict(d); + tiniparser_freedict(d); return ctrl; } |