Skip navigation

STANFORD UNIVERSITY

INFORMATION TECHNOLOGY SERVICES

Directory

Solaris 8 working with posixAccount on LDAP

  1. Create /var/ldap/ldap_client_file:
    #
    # Do not edit this file manually; your changes will be lost.Please use
    # ldapclient (1M) instead.
    #
    NS_LDAP_FILE_VERSION= 1.0
    NS_LDAP_SERVERS= ldap.stanford.edu:389
    NS_LDAP_SEARCH_BASEDN= dc=stanford,dc=edu
    NS_LDAP_AUTH= NS_LDAP_AUTH_NONE
    NS_LDAP_TRANSPORT_SEC= NS_LDAP_SEC_NONE
    NS_LDAP_SEARCH_REF= NS_LDAP_NOREF
    NS_LDAP_DOMAIN= stanford.edu
    NS_LDAP_EXP= 1045640377
    NS_LDAP_SEARCH_DN= passwd:(cn=accounts,dc=stanford,dc=edu)
    NS_LDAP_SEARCH_DN= group:(cn=accounts,dc=stanford,dc=edu)
    NS_LDAP_SEARCH_SCOPE= NS_LDAP_SCOPE_SUBTREE
    NS_LDAP_SEARCH_TIME= 30

  2. Create /var/ldap/ldap_client_cred:
    #
    # Do not edit this file manually; your changes will be lost.Please use
    # ldapclient (1M) instead.
    #
    NS_LDAP_BINDDN= cn=accounts,dc=stanford,dc=edu

  3. Edit /etc/nsswitch.conf so the "passwd:" line reads:
    passwd: file ldap

  4. To test:
    /usr/bin/listusers

    should give a list of users.

Last modified Friday, 20-Jan-2006 10:40:06 AM

Stanford University Home Page