Hi,
Does exist a command line to do change a password type from Crypt to Open Directory ?
I want to automate the creation of LDAP user. For the moment I have this :
dscl -u ADMIN -P "PASSWORD" /LDAPv3/127.0.0.1 -create /Users/"$login"
dscl -u ADMIN -P "PASSWORD" /LDAPv3/127.0.0.1 -create /Users/"$login" cn "$login"
dscl -u ADMIN -P "PASSWORD" /LDAPv3/127.0.0.1 -create /Users/"$login" sn "$login"
dscl -u ADMIN -P "PASSWORD" /LDAPv3/127.0.0.1 -create /Users/"$login" uid "$login"
dscl -u ADMIN -P "PASSWORD" /LDAPv3/127.0.0.1 -create /Users/"$login" gidNumber "$gid"
dscl -u ADMIN -P "PASSWORD" /LDAPv3/127.0.0.1 -create /Users/"$login" uidNumber "$uid"
dscl -u ADMIN -P "PASSWORD" /LDAPv3/127.0.0.1 -create /Users/"$login" homeDirectory /Volumes/data/"$login"
dscl -u ADMIN -P "PASSWORD" /LDAPv3/127.0.0.1 -create /Users/"$login" loginShell /bin/bash
With :
$ pwpolicy -a diradmin -p "(paradize)" -u "test9" -n /LDAPv3/127.0.0.1 -setpassword "aa"
test9 is not a password server account.
Thanks