summaryrefslogtreecommitdiff
path: root/nslcd/common.c
AgeCommit message (Collapse)Author
2014-12-14cleanup:Luke Shumaker
- Remove a bunch of unused stuff from common. - Rename some ldap-named stuff - Don't bother messing with UIDs/GIDs, let systemd do it
2014-12-04get strict (-Wall -Werror -Wextra), clean upLuke Shumaker
2014-11-29fix errors: the only erroring files left are db_pam.c and nslcd.cLuke Shumaker
2014-11-29wipLuke Shumaker
2013-12-18Centralise buffer sizesArthur de Jong
Common buffer sizes are now stored centrally so it can be easily and consistently updated if required. Some buffers remain with locally defined sizes that do not match a global buffer size.
2013-10-29Fix a number of compiler warningsArthur de Jong
This includes a number of small fixes for issues that were formerly masked by the incorrect AC_LANG_PROGRAM check.
2013-03-09move signame() function to common.c to make it available to all modulesArthur de Jong
2012-12-22update C coding style to a more commonly used styleArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1873 ef36b2f9-881f-0410-afb5-c4e39611909c
2012-12-16switch protocol from host byte order to network byte order and switch use of ↵Arthur de Jong
uid_t and gid_t in the protocol to int32 git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1864 ef36b2f9-881f-0410-afb5-c4e39611909c
2012-05-20implement extra range checking of all numeric valuesArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1694 ef36b2f9-881f-0410-afb5-c4e39611909c
2012-01-09Add a matching va_end() for va_start() in mysnprintf()Jakub Hrozek
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1594 ef36b2f9-881f-0410-afb5-c4e39611909c
2011-09-09make validation log messages consistentArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1542 ef36b2f9-881f-0410-afb5-c4e39611909c
2011-08-29implement and use a strtoui() function if uid_t or gid_t is of size unsigned ↵Arthur de Jong
int (thanks Jakub Hrozek) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1528 ef36b2f9-881f-0410-afb5-c4e39611909c
2011-06-05mark more strings as const and don't free() data returned by cfg_getdomainname()Arthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1473 ef36b2f9-881f-0410-afb5-c4e39611909c
2011-04-15support using the objectSid attribute to provide numeric user and group ids, ↵Arthur de Jong
based on a patch by Wesley Mason git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1425 ef36b2f9-881f-0410-afb5-c4e39611909c
2011-03-25implement a validnames option that can be used to fine-tune the test for ↵Arthur de Jong
valid user and group names using a regular expression git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1411 ef36b2f9-881f-0410-afb5-c4e39611909c
2011-03-11move HOST_NAME_MAX fallback definition to header fileArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1387 ef36b2f9-881f-0410-afb5-c4e39611909c
2011-03-10update copyright headers to add missing yearsArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1384 ef36b2f9-881f-0410-afb5-c4e39611909c
2011-01-29implement a fqdn variable that can be used inside pam_authz_search filtersArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1367 ef36b2f9-881f-0410-afb5-c4e39611909c
2010-12-28allow attribute mapping with an expression for the userPassword attribute ↵Arthur de Jong
for passwd, group and shadow entries and by default map it to the unmatchable password ("*") to avoid accidentally leaking password information git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1346 ef36b2f9-881f-0410-afb5-c4e39611909c
2010-12-24also support tilde (~) in user and group names, except as first characterArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1340 ef36b2f9-881f-0410-afb5-c4e39611909c
2010-12-24make logic of character tests easier to readArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1339 ef36b2f9-881f-0410-afb5-c4e39611909c
2009-09-04some simple changes in includes to make FreeBSD diff smallerArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@986 ef36b2f9-881f-0410-afb5-c4e39611909c
2009-08-31rename software to nss-pam-ldapdArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@978 ef36b2f9-881f-0410-afb5-c4e39611909c
2009-02-27check user and group names against LOGIN_NAME_MAX if it is definedArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@810 ef36b2f9-881f-0410-afb5-c4e39611909c
2008-12-03allow backslashes in names execpt as first or last characterArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@804 ef36b2f9-881f-0410-afb5-c4e39611909c
2008-10-01also allow spaces in user and group names because it was causing problems in ↵Arthur de Jong
some environments git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@788 ef36b2f9-881f-0410-afb5-c4e39611909c
2008-06-13combine isvalidusername() and isvalidgroupname() into isvalidname() because ↵Arthur de Jong
they are similar enough and we just want to check to see if it is a reasonable name (e.g. not a DN) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@759 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-12-31fix bug that would return a password of one character shortArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@543 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-12-14explain why we write an invalid address (in comment) and add TODO to ↵Arthur de Jong
describe we need to change the log format git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@495 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-12-09switch to new LDAP entry parsing code that is much simpler and more readableArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@488 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-09-08move nss2nslcd() to ldap-nss.cArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@387 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-09-07move some of the filter code to the database specific modules to be able to ↵Arthur de Jong
reduce complexity of ldap-nss.c later on git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@375 ef36b2f9-881f-0410-afb5-c4e39611909c
2007-01-09change license from GNU Library General Public License v.2 to GNU Lesser ↵Arthur de Jong
General Public License v.2.1 with permission from Luke Howard git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@215 ef36b2f9-881f-0410-afb5-c4e39611909c
2006-12-21rename server directory to nslcdArthur de Jong
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@196 ef36b2f9-881f-0410-afb5-c4e39611909c