NDS2PWD

Script to synchronize /etc/passwd and /etc/shadow with NDS enabled Unix accounts

Purpose:

  • Currently the ncpfs system do not have a final nss_switch module such as Ldap or NIS to extends the local user's database with "remote " NDS accounts. We have a beta version here.
  • This program is an Perl script retrieving all members of an NDS group (allowed to log from Linux using the PAM module) and making local /etc/passwd and /etc/shadow in sync with data retrieved from NDS. With default values, accounts with ids <100 or >=-65534 are considered as local and kept in /etc/passwd and /etc/shadow.
  • The script will also check that Unix ids from NDS are between lower and upper values with no duplicates
  • NDS passwords are not retrieved from NDS and will be checked at login time by the PAM authentification module.
  • This program could be run within a cron script, to synchronize local users database with NDS, thus removing the need to the pam_ncp module to autocreate or automodify local users. This will ensure that Unix users will have the same UID regardless of the workstation they are logging (required if Unix homes are on NFS servers).
  • Unix data are stored in the multistring NDS L attribute (also called Description as used by the PAM pam_auth_ncp module) with the following format:

    unix ID U:xxxx or u:xxxx required
    unix Home H:/home/login or h:/home/login required
    unix Shell S:/bin/bash or s:/bin/bash not required
    unix group G:100 or g:100 not required
    unix Gecos NDS Full Name attribute not required

  • They can be edited directly with NWAdmin or with the pam_ncp snapin for NWAdmin, or imported to NDS from a text file using uimport DOS utility

  • This also solve the problem of ssh remote access to a Linux box, using pam_ncp module when the user never logged in before on that station . Since account does not exist in the local database, ssh fails immediatly without even calling PAM.

    Requirements:

    Usage:

    Download:

    History:

    TODO:


    Vous êtes notre Counter (Security) eme visiteur