Todd C. Miller
3c7b76bb54
Unify the -l output for file and ldap based sudoers and use lbufs for both.
...
The ldap output does not currently include options that cannot be represented
as tags. This will be remedied in a long list output mode to come.
2008-02-03 15:43:38 +00:00
Todd C. Miller
fb01648878
Move display_privs() and display_cmnd() from parse.c to sudo_nss.c.
...
This should make it possible to build an LDAP-only sudo binary.
2008-01-05 21:25:28 +00:00
Todd C. Miller
6f2cd1b184
Rename read_nss -> sudo_read_nss
...
Add --with-nsswitch to allow users to specify nsswitch.conf path or disable it.
If --with-nsswitch=no but --with-ldap, order is LDAP, then sudoers.
Fix --with-ldap-conf-file and --with-ldap-secret-file
2008-01-01 18:22:03 +00:00
Todd C. Miller
926dcd0bcc
Refactor line reading into a separate function, sudo_parseln(),
...
which removes comments, leading/trailing whitespace and newlines.
May want to rethink the use of sudo_parseln() for /etc/ldap.secret
2007-12-31 20:04:46 +00:00
Todd C. Miller
de3bb58929
actual sudo nss code
2007-12-31 15:24:57 +00:00