~ubuntu-branches/ubuntu/wily/nss-pam-ldapd/wily

« back to all changes in this revision

Viewing changes to nslcd/cfg.c

  • Committer: Package Import Robot
  • Author(s): Arthur de Jong
  • Date: 2012-04-22 22:00:00 UTC
  • mfrom: (16.1.2)
  • Revision ID: package-import@ubuntu.com-20120422220000-c753ayxldu9jtgzv
Tags: 0.8.7-1
* new upstream release:
  - log the first 10 search results in debug mode to make debugging
    easier (patch by Matthijs Kooijman)
  - provide more detailed logging information for LDAP errors, this
    should especially help for TLS related problems (based on a patch by
    Mel Flynn)
  - fix logging of invalid pam_authz_search value (LP: #951343)
  - when doing DNS queries for SRV records recognise default ldap and
    ldaps ports (closes: #661955)
  - make whether or not to do case-sensitive filtering configurable
    (patch by Matthew L. Dailey)
  - document the fact that each thread opens it's own connection (patch
    by Chris Hiestand)
  - some small portability improvements
  - try to prevent some of the Broken pipe messages in nslcd
  - increase buffer used for pam_authz_search as suggested by Chris J Arges
* update the X-Start-Before header in the init script to ensure that nslcd
  is started before the display managers
* update debhelper dependency and remove lintian override
* mark nslcd as multi-arch foreign to allow it to satisfy dependencies
  on any arch
* drop no-symbols-control-file lintian override which is no longer needed
* upgrade to standards-version 3.9.3 (no changes needed)

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 
6
6
   Copyright (C) 1997-2005 Luke Howard
7
7
   Copyright (C) 2007 West Consulting
8
 
   Copyright (C) 2007, 2008, 2009, 2010, 2011 Arthur de Jong
 
8
   Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012 Arthur de Jong
9
9
 
10
10
   This library is free software; you can redistribute it and/or
11
11
   modify it under the terms of the GNU Lesser General Public
89
89
  cfg->ldc_threads=5;
90
90
  cfg->ldc_uid=NOUID;
91
91
  cfg->ldc_gid=NOGID;
 
92
  cfg->ldc_ignorecase=0;
92
93
  for (i=0;i<(NSS_LDAP_CONFIG_URI_MAX+1);i++)
93
94
  {
94
95
    cfg->ldc_uris[i].uri=NULL;
214
215
      *nxt='\0';
215
216
      nxt++;
216
217
    }
217
 
    /* add the URI */
218
 
    mysnprintf(buf,sizeof(buf),"ldap://%s",hostlist);
 
218
    /* if port is 636, use ldaps:// URI */
 
219
    if ((strlen(hostlist)>4)&&(strcmp(hostlist+strlen(hostlist)-4,":636")==0))
 
220
    {
 
221
      hostlist[strlen(hostlist)-4]='\0';
 
222
      mysnprintf(buf,sizeof(buf),"ldaps://%s",hostlist);
 
223
    }
 
224
    else
 
225
    {
 
226
      /* strip default port number */
 
227
      if ((strlen(hostlist)>4)&&(strcmp(hostlist+strlen(hostlist)-4,":389")==0))
 
228
        hostlist[strlen(hostlist)-4]='\0';
 
229
      mysnprintf(buf,sizeof(buf),"ldap://%s",hostlist);
 
230
    }
219
231
    log_log(LOG_DEBUG,"add_uris_from_dns(): found uri: %s",buf);
220
232
    add_uri(filename,lnr,cfg,buf);
221
233
    /* get next entry from list */
852
864
      get_gid(filename,lnr,keyword,&line,&cfg->ldc_gid);
853
865
      get_eol(filename,lnr,keyword,&line);
854
866
    }
 
867
    else if (strcasecmp(keyword,"ignorecase")==0)
 
868
    {
 
869
      get_boolean(filename,lnr,keyword,&line,&cfg->ldc_ignorecase);
 
870
      get_eol(filename,lnr,keyword,&line);
 
871
    }
855
872
    /* general connection options */
856
873
    else if (strcasecmp(keyword,"uri")==0)
857
874
    {