AFP548 Changing the world one server at a time.

Changing a password type from Crypt to Open Directory

Home › Forums › OS X Server and Client Discussion › Open Directory › Changing a password type from Crypt to Open Directory

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #363599
    delaf
    Participant

    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

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.