ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/CCSAdmin/adduser.sh
(Generate patch)

Comparing CCSAdmin/adduser.sh (file contents):
Revision 566 by douglas, 2005-08-28T22:29:20-07:00 vs.
Revision 572 by douglas, 2005-09-25T17:43:17-07:00

# Line 1 | Line 1
1 < #!/usr/local/bin/bash
1 > #!/usr/bin/env bash
2   # Douglas Thrift
3   #
4   # CCS Computer Science
# Line 7 | Line 7
7  
8   source '/ccs/bin/common.sh'
9  
10 BASE='dc=ccs,dc=ucsb,dc=edu'
11 SECRET='/ccs/etc/secret'
12
10   ID=$((`$ldapsearch -b "ou=People,$BASE" -LLL -S 'uidNumber' 'uidNumber' \
11          | $sed -Ee 's/^uidNumber: (1[0-9]{3})$/\1/p;d' | $tail -n 1` + 1))
12  
# Line 18 | Line 15 | dn: uid=$USER,ou=People,$BASE
15   objectclass: top
16   objectclass: account
17   objectclass: posixAccount
18 + objectclass: shadowAccount
19   objectclass: ucsbCcsLoginShells
20   objectclass: sambaSamAccount
21   cn: $NAME

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines