Home Forums OS X Server and Client Discussion Open Directory changing passwords via command line on OD master

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #361091
    MartinSB
    Participant

    I have been unable to find a way to for a user change their password from the command line.

    I have users that only access an OS X Server 10.3 host (Open Directory master) via the command line. The users are part of the LDAP database. The man page for passwd indicates that this should be possible for Open Directory users, but I cannot get this to work. I’ve tried various permutations of

    passwd -i opendirectory -l /LDAPv3/127.0.0.1

    but while the command will prompt for the old password (and accept it if correct), . It will take the old password, but it always returns the message “Sorry”, and the password is not changed.

    Can anyone tell me how to do this?

    And, more generally, “what are the Apple endorsed methods by which a user may change their password”? I can’t seem to find anything in the Server docs about the user changing their own password.

    #367304
    Anonymous
    Guest

    You should be able to change your password (as a user) on any client connected to the directory (including the master) using the UNIX “passwd” command or the Kerberos command “kpasswd”.

    I’m currently having a problem at my site where if a user runs “passwd” then their login password is changed correctly but their Kerberos password does not. Whereas using kpasswd changes both so I would personally recommend the later but the former should work and be correct for you.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Comments are closed