Changeset 2307 for trunk/server


Ignore:
Timestamp:
Aug 19, 2012, 11:25:40 PM (12 years ago)
Author:
quentin
Message:
Only dump real user accounts, and not LDAP-only users.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/common/oursrc/accountadm/get-homedirs

    r2299 r2307  
    33# Run this as root on scripts.
    44
    5 /usr/bin/ldapsearch -LLL -z 0 -b ou=People,dc=scripts,dc=mit,dc=edu -s one -x -D 'cn=Directory Manager' -y /etc/signup-ldap-pw '' cn homeDirectory | \
     5/usr/bin/ldapsearch -LLL -z 0 -b ou=People,dc=scripts,dc=mit,dc=edu -s one -x -D 'cn=Directory Manager' -y /etc/signup-ldap-pw 'objectClass=posixAccount' cn homeDirectory | \
    66        perl -0pe 's/\n //g; s/^dn: .*\ncn: (.*)\nhomeDirectory: (.*)\n\n/$1 $2\n/gm'
Note: See TracChangeset for help on using the changeset viewer.