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

« back to all changes in this revision

Viewing changes to nslcd/netgroup.c

  • Committer: Bazaar Package Importer
  • Author(s): Arthur de Jong
  • Date: 2010-05-08 12:00:00 UTC
  • Revision ID: james.westby@ubuntu.com-20100508120000-7hue9o7rqox4ih4q
Tags: 0.7.4
* fix a buffer overflow that should have no security consequences
* perform proper fail-over when authenticating in the PAM module
  (closes: #577593)
* add an nss_initgroups_ignoreusers option to ignore user name to group
  lookups for the specified users
* add an pam_authz_search option to perform a flexible authorisation check
  on login (e.g. to restrict which users can login to which hosts, etc)
* implement a minimum_uid option for the PAM module to ignore users that
  have a lower numeric user id and make 1000 the default value for Debian
  (closes: #579574)
* change the way retries are done to error out quicker if the LDAP server
  is down for some time (this should make the system more responsive when
  the LDAP server is unavailable) and rename the reconnect_maxsleeptime
  option to reconnect_retrytime to better describe the behaviour
* only log "connected to LDAP server" if the previous connection failed
  (closes: #483795)
* documentation improvements
* debian/nslcd.config: also parse /etc/ldap.conf for systems that put NSS
  and PAM configuration there

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) 2006 West Consulting
8
 
   Copyright (C) 2006, 2007, 2009 Arthur de Jong
 
8
   Copyright (C) 2006, 2007, 2009, 2010 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
55
55
const char *netgroup_filter = "(objectClass=nisNetgroup)";
56
56
 
57
57
/* the attributes to request with searches */
58
 
const char *attmap_netgroup_cn              = "cn";
 
58
const char *attmap_netgroup_cn                = "cn";
59
59
const char *attmap_netgroup_nisNetgroupTriple = "nisNetgroupTriple";
60
60
const char *attmap_netgroup_memberNisNetgroup = "memberNisNetgroup";
61
61
 
65
65
static int mkfilter_netgroup_byname(const char *name,
66
66
                                    char *buffer,size_t buflen)
67
67
{
68
 
  char safename[1024];
 
68
  char safename[300];
69
69
  /* escape attribute */
70
70
  if (myldap_escape(name,safename,sizeof(safename)))
71
71
    return -1;