Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/nslcd/cfg.c
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2008-07-20 10:27:29 +0200
committerArthur de Jong <arthur@arthurdejong.org>2008-07-20 10:27:29 +0200
commit27b3b0dd5a7c34f8e5f3885a04051288445219d0 (patch)
treee74505f80df204d4e573ca28fd57b60b79fe6fc8 /nslcd/cfg.c
parenta7866062ed9cfe6c6d6c120d80bd2ddff7e5fdf9 (diff)
rename get_base_from_dse() to get_base_from_rootdse()
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@777 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nslcd/cfg.c')
-rw-r--r--nslcd/cfg.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/nslcd/cfg.c b/nslcd/cfg.c
index 06b4b22..c72f570 100644
--- a/nslcd/cfg.c
+++ b/nslcd/cfg.c
@@ -900,7 +900,7 @@ static void cfg_read(const char *filename,struct ldap_config *cfg)
Note that this returns a string that has been allocated with strdup().
For this to work the myldap module needs enough configuration information
to make an LDAP connection. */
-static MUST_USE char *get_base_from_dse(void)
+static MUST_USE char *get_base_from_rootdse(void)
{
MYLDAP_SESSION *session;
MYLDAP_SEARCH *search;
@@ -928,7 +928,7 @@ static MUST_USE char *get_base_from_dse(void)
if ((values!=NULL)&&(values[0]!=NULL))
{
base=xstrdup(values[0]);
- log_log(LOG_DEBUG,"get_basedn_from_dse(): found attribute defaultNamingContext with value %s",values[0]);
+ log_log(LOG_DEBUG,"get_basedn_from_rootdse(): found attribute defaultNamingContext with value %s",values[0]);
break;
}
/* get namingContexts */
@@ -936,7 +936,7 @@ static MUST_USE char *get_base_from_dse(void)
if ((values!=NULL)&&(values[0]!=NULL))
{
base=xstrdup(values[0]);
- log_log(LOG_DEBUG,"get_basedn_from_dse(): found attribute namingContexts with value %s",values[0]);
+ log_log(LOG_DEBUG,"get_basedn_from_rootdse(): found attribute namingContexts with value %s",values[0]);
break;
}
}
@@ -986,9 +986,9 @@ void cfg_init(const char *fname)
}
/* TODO: check that if some tls options are set the ssl option should be set to on (just warn) */
#endif /* LDAP_OPT_X_TLS */
- /* if basedn is not yet set, get if from the DSE */
+ /* if basedn is not yet set, get if from the rootDSE */
if (nslcd_cfg->ldc_base==NULL)
- nslcd_cfg->ldc_base=get_base_from_dse();
+ nslcd_cfg->ldc_base=get_base_from_rootdse();
/* TODO: handle the case gracefully when no LDAP server is available yet */
/* see if we have a valid basedn */
if ((nslcd_cfg->ldc_base==NULL)||(nslcd_cfg->ldc_base[0]=='\0'))