source: trunk/server/common/oursrc/accountadm/get-homedirs @ 2299

Last change on this file since 2299 was 2299, checked in by ezyang, 9 years ago
Make get-homedirs part of accountadm package, so that we can reference it in sudoers.
  • Property svn:executable set to *
File size: 273 bytes
Line 
1#!/bin/sh
2
3# Run this as root on scripts.
4
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 | \
6        perl -0pe 's/\n //g; s/^dn: .*\ncn: (.*)\nhomeDirectory: (.*)\n\n/$1 $2\n/gm'
Note: See TracBrowser for help on using the repository browser.