~ubuntu-branches/ubuntu/precise/nss-pam-ldapd/precise-updates

« back to all changes in this revision

Viewing changes to nslcd/cfg.c

  • Committer: Bazaar Package Importer
  • Author(s): Arthur de Jong
  • Date: 2010-07-03 17:00:00 UTC
  • Revision ID: james.westby@ubuntu.com-20100703170000-qjnaavp1wx04z4ew
Tags: 0.7.7
* don't use use_authtok for password modification by default
* fine-tune pam-auth-update configuration after discussion with Steve
  Langasek (see: #583492)
  Note that this currently requires that shadow information is also provided
  by LDAP (in /etc/nsswitch.conf).
* ensure that nslcd is started after hostname lookups are available so
  getting to the LDAP server via DNS will work (patch by Petter
  Reinholdtsen) (closes: #585968)
* start k5start from the init script to keep the Kerberos ticket active if
  nslcd is configured for SASL GSSAPI Kerberos authentication, based on a
  patch by Daniel Dehennin (closes: #585639)
* upgrade to standards-version 3.9.0 (switch to Breaks/Replaces instead of
  Conflicts)
* refactoring and simplification of PAM module which also improves logging
* implement a nullok PAM option and disable empty passwords by default
* portability improvements and other minor code improvements
* the mechanism to disable name lookups through LDAP from within the nslcd
  process has been improved
* the undocumented use_sasl option has been removed (specifying sasl_mech
  now implies use_sasl)
* the sasl_mech, sasl_realm, sasl_authcid, sasl_authzid and sasl_secprops
  configuration options are now documented

Show diffs side-by-side

added added

removed removed

Lines of Context:
97
97
  cfg->ldc_binddn=NULL;
98
98
  cfg->ldc_bindpw=NULL;
99
99
  cfg->ldc_rootpwmoddn=NULL;
 
100
  cfg->ldc_sasl_mech=NULL;
 
101
  cfg->ldc_sasl_realm=NULL;
100
102
  cfg->ldc_sasl_authcid=NULL;
101
103
  cfg->ldc_sasl_authzid=NULL;
102
104
  cfg->ldc_sasl_secprops=NULL;
103
 
  cfg->ldc_sasl_mech=NULL;
104
 
  cfg->ldc_sasl_realm=NULL;
105
 
  cfg->ldc_usesasl=0;
106
105
  for (i=0;i<NSS_LDAP_CONFIG_MAX_BASES;i++)
107
106
    cfg->ldc_bases[i]=NULL;
108
107
  cfg->ldc_scope=LDAP_SCOPE_SUBTREE;
819
818
      get_restdup(filename,lnr,keyword,&line,&cfg->ldc_rootpwmoddn);
820
819
    }
821
820
    /* SASL authentication options */
 
821
    else if (strcasecmp(keyword,"use_sasl")==0)
 
822
    {
 
823
      log_log(LOG_WARNING,"%s:%d: option %s is deprecated (and will be removed in an upcoming release), use sasl_mech instead",filename,lnr,keyword);
 
824
    }
 
825
    else if (strcasecmp(keyword,"sasl_mech")==0)
 
826
    {
 
827
      get_strdup(filename,lnr,keyword,&line,&cfg->ldc_sasl_mech);
 
828
      get_eol(filename,lnr,keyword,&line);
 
829
    }
 
830
    else if (strcasecmp(keyword,"sasl_realm")==0)
 
831
    {
 
832
      get_strdup(filename,lnr,keyword,&line,&cfg->ldc_sasl_realm);
 
833
      get_eol(filename,lnr,keyword,&line);
 
834
    }
822
835
    else if (strcasecmp(keyword,"sasl_authcid")==0)
823
836
    {
824
 
      log_log(LOG_WARNING,"%s:%d: option %s is currently not fully supported (please report any successes)",filename,lnr,keyword);
825
837
      get_strdup(filename,lnr,keyword,&line,&cfg->ldc_sasl_authcid);
826
838
      get_eol(filename,lnr,keyword,&line);
827
839
    }
828
840
    else if (strcasecmp(keyword,"sasl_authzid")==0)
829
841
    {
830
 
      log_log(LOG_WARNING,"%s:%d: option %s is currently not fully supported (please report any successes)",filename,lnr,keyword);
831
842
      get_strdup(filename,lnr,keyword,&line,&cfg->ldc_sasl_authzid);
832
843
      get_eol(filename,lnr,keyword,&line);
833
844
    }
834
 
    else if (strcasecmp(keyword,"sasl_mech")==0)
835
 
    {
836
 
      log_log(LOG_WARNING,"%s:%d: option %s is currently not fully supported (please report any successes)",filename,lnr,keyword);
837
 
      get_strdup(filename,lnr,keyword,&line,&cfg->ldc_sasl_mech);
838
 
      get_eol(filename,lnr,keyword,&line);
839
 
    }
840
 
    else if (strcasecmp(keyword,"sasl_realm")==0)
841
 
    {
842
 
      log_log(LOG_WARNING,"%s:%d: option %s is currently not fully supported (please report any successes)",filename,lnr,keyword);
843
 
      get_strdup(filename,lnr,keyword,&line,&cfg->ldc_sasl_realm);
844
 
      get_eol(filename,lnr,keyword,&line);
845
 
    }
846
845
    else if (strcasecmp(keyword,"sasl_secprops")==0)
847
846
    {
848
 
      log_log(LOG_WARNING,"%s:%d: option %s is currently not fully supported (please report any successes)",filename,lnr,keyword);
849
847
      get_strdup(filename,lnr,keyword,&line,&cfg->ldc_sasl_secprops);
850
848
      get_eol(filename,lnr,keyword,&line);
851
849
    }
852
 
    else if (strcasecmp(keyword,"use_sasl")==0)
853
 
    {
854
 
      log_log(LOG_WARNING,"%s:%d: option %s is currently not fully supported (please report any successes)",filename,lnr,keyword);
855
 
      get_boolean(filename,lnr,keyword,&line,&cfg->ldc_usesasl);
856
 
      get_eol(filename,lnr,keyword,&line);
857
 
    }
858
850
    /* Kerberos authentication options */
859
851
    else if (strcasecmp(keyword,"krb5_ccname")==0)
860
852
    {