diff options
author | Zhanna Tsitkov <tsitkova@mit.edu> | 2009-02-04 17:08:44 +0000 |
---|---|---|
committer | Zhanna Tsitkov <tsitkova@mit.edu> | 2009-02-04 17:08:44 +0000 |
commit | 918aa74cabf0b9ac1aef18d6afb7e2a82b415531 (patch) | |
tree | 5d2a67bf23a134469ffe55d98ad4bd20ea6ccdcc /src/plugins/kdb | |
parent | 8808f5363b1a3872a5e19ce1197d26e1d8aea5a1 (diff) | |
download | krb5-918aa74cabf0b9ac1aef18d6afb7e2a82b415531.tar.gz krb5-918aa74cabf0b9ac1aef18d6afb7e2a82b415531.tar.xz krb5-918aa74cabf0b9ac1aef18d6afb7e2a82b415531.zip |
Use macros for config parameters
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21879 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/plugins/kdb')
-rw-r--r-- | src/plugins/kdb/ldap/libkdb_ldap/ldap_misc.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/kdb/ldap/libkdb_ldap/ldap_misc.c b/src/plugins/kdb/ldap/libkdb_ldap/ldap_misc.c index f0734deb2..8625984d8 100644 --- a/src/plugins/kdb/ldap/libkdb_ldap/ldap_misc.c +++ b/src/plugins/kdb/ldap/libkdb_ldap/ldap_misc.c @@ -185,7 +185,7 @@ krb5_ldap_read_server_params(context, conf_section, srv_type) */ if (ldap_context->max_server_conns == 0) { st = prof_get_integer_def (context, conf_section, - "ldap_conns_per_server", + KRB5_CONF_LDAP_CONNS_PER_SERVER, DEFAULT_CONNS_PER_SERVER, &ldap_context->max_server_conns); if (st) @@ -208,9 +208,9 @@ krb5_ldap_read_server_params(context, conf_section, srv_type) if (ldap_context->bind_dn == NULL) { char *name = 0; if (srv_type == KRB5_KDB_SRV_TYPE_KDC) - name = "ldap_kdc_dn"; + name = KRB5_CONF_LDAP_KDC_DN; else if (srv_type == KRB5_KDB_SRV_TYPE_ADMIN) - name = "ldap_kadmind_dn"; + name = KRB5_CONF_LDAP_KADMIN_DN; else if (srv_type == KRB5_KDB_SRV_TYPE_PASSWD) name = "ldap_kpasswdd_dn"; @@ -229,7 +229,7 @@ krb5_ldap_read_server_params(context, conf_section, srv_type) */ if (ldap_context->service_password_file == NULL) { st = prof_get_string_def (context, conf_section, - "ldap_service_password_file", + KRB5_CONF_LDAP_SERVICE_PASSWORD_FILE, &ldap_context->service_password_file); if (st) goto cleanup; @@ -243,7 +243,7 @@ krb5_ldap_read_server_params(context, conf_section, srv_type) */ if (ldap_context->root_certificate_file == NULL) { st = prof_get_string_def (context, conf_section, - "ldap_root_certificate_file", + KRB5_CONF_LDAP_ROOT_CERTIFICATE_FILE, &ldap_context->root_certificate_file); if (st) goto cleanup; @@ -268,7 +268,7 @@ krb5_ldap_read_server_params(context, conf_section, srv_type) } if ((st=profile_get_string(context->profile, KDB_MODULE_SECTION, conf_section, - "ldap_servers", NULL, &tempval)) != 0) { + KRB5_CONF_LDAP_SERVERS, NULL, &tempval)) != 0) { krb5_set_error_message (context, st, "Error reading 'ldap_servers' attribute"); goto cleanup; } |