Requirements:
Usage:
| [ncp_nss] | |
| useTree=1 | May be 1 to specify that server is a NDS tree name or 0. In that case server is a Netware server name |
| server=INSA_ROOT |
|
| startCtx= | Context to start searching (default=empty = [Root] context) |
| ctrlGroup= | NDS group to limit search to (default=empty) all users with NDS8 UNIX:UID attribute or U:nnnn Location property will be processed |
| the three following switches were added to avoid direct editing of /etc/nsswitch.conf file and restarting the nscd daemon. | |
| doPasswd=1 | process passwd requests |
| doShadow=1 | process shadow requests |
| doGroup=1 | process group request (can really slow down getgrpxxx calls with big NDS groups |
| defGid=100 | If no UNIX:GID attribute or G:nnnn found for that user, use this value for Unix primary GID |
| defShell=/bin/bash | If no UNIX:SHELL attribute or S:/path/to/shell found for that user, use this value |
| debug=1 | Fill /var/log/secure with a lot of messages |
| fallbackUid=-1 | If user has no Unix uid property, default behaviour (fallbackUid=-1) is to skip it. If changed to another value, (between 100 and 65534) all users with no Unix ID property in NDs will have this fallback value |
| fallbackGid=-1 | If group has no Unix gid property, default behaviour (fallbackGid=-1) is to skip it. If changed to another value, (between 100 and 65534) all groups with no Unix ID property in NDs will have this fallback value |
-h Print this help text -u id Unix User passwd info to search by uid in NDS -n login Unix User passwd infos to search by name in NDS -s login Unix User shadow infos to search by name in NDS -i grpid Unix group to search by gid in NDS -g grpname Unix group to search by name in NDS -m login Get Unix groups of user login -U all Unix users to search in NDS -G all Unix groups to search in NDS -S all Unix shadows to search in NDS -D verbose mode (fill /var/log/secure && screen) Others options (-T... are deprecated and not functional ( were used in the alpha version)
passwd: files ncp ldap shadow: files ncp ldap group: files ncp ldap
Some real life examples:
Download:
History:
1.00 2003, January 06 Patrick Pollet
initial release
1.01 2003, January 08 Patrick Pollet
added conf structure and control group
added optional fallback UID and GID if none found in NDS (default is to skip user,group)
1.02 2003, January 09 Patrick Pollet
added initgroups
1.03 2003, January 10 Patrick Pollet
fixed bug in nds_user_info2 (bad structure received by nds_user_location2)
1.04 2003, January 11 Patrick Pollet
fixed setting ndsXXX=NULL trees in case of errors in _nss_ncp_setxxent()
made always NAME_CONTEXT=[Root] in CreateContextAndConn
calling NWCCloseIteration only it some errors has occured in the search
1.05 2003, January 15 Patrick Pollet
-Avoid multiple reading of conf file by removing recursive calls
in nss_ncp_getxxent_r in case a entry has no Unix infos in NDS
(replaced by a goto nextuser)
-Added missing free_nw_xxx_info when leaving nss_ncp_getxxent_r (fixed memory leaks)
-Added testing for failure in allocating tree structure in nss_ncp_setxxent_r
-if (id !=(uid_t)-1) and not if (id) in getentxx if we search by UID !!!!
-getentbyxx give a warning in syslog if more that one entry match the name or id search criteria
1.06 2003, January 16 Patrick Pollet
-implemented reading of configuration file in /etc/nss_ncp.conf
-in case of fatal errors, force log in syslog by using calls to traceForce ( previously fatal
errors were only reported in debug mode, since the syslog file is not opened in normal mode)
1.07 2003, January 16 Patrick Pollet
Speed up the search:
1)config informations are stored in the internal trees structures
when calling nss_ncp_setxxent_r and freed by nss_ncp_endxxent_r
so we don't read again config file at every call to nss_ncp_getxxent_r
2) group infos are really slow with big groups,so we added a flag doGroup in conf file
to skip the search (easier that to edit /etc/nsswitch.conf AND restarting nscd daemon).
TODO:
Vous êtes notre eme visiteur