Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (no subject)



At 11:31 AM -0600 2/20/07, Matthew Jones wrote:
The user password type is open directory. I had explored the passwd command, and using ssh, which does work. The problem I have with this implementation is that I actually need to be able to use a script to change the password, and I can't see any way to feed in the "yes" needed to accept the RSA fingerprint given to me from ssh.

I attempted something similar for a different project but I found a problem gaining control of a tty in a script. It seems to be a Darwin-only bug in all systems I tested except 64-bit Intels.


You could also try perl's Net::SSH. Last time I tried I had trouble compiling it and I resorted to Net::Telnet and a few firewall rules. But that was a different project. And maybe Net::SSH has been updated since then.

Recompiling ssh without the prompt is also not an option. This also complicates things by making it a requirement that each user has SSH on their account, or that i store an account's (with SSH access) information in my script somewhere. Any other thoughts?

Are you trying to change users' passwords, or are you trying to let users change their own passwords?


Many of my users aren't using Macs and/or they aren't on campus so they need a cross-platform method to change passwords. My solution was to create a web page for users to log in and change their own passwords. It hasn't been trivial to implement, but it seems to be the best method for the user community.

I have a few scripts here that might help you get started. http://edisk.fandm.edu/matt.richard/pass-scripts.html I've considered releasing the code to my password change site but much of it is specific to our installation and furthermore I'm not exactly looking for peer review at the moment.

You also might take a look at this, but I haven't really looked at it myself. For all I know it might not be maintained any longer.

-Matt

matt


On Feb 20, 2007, at 11:09 AM, Matt Richard wrote:

At 10:49 AM -0600 2/20/07, Matthew Jones wrote:
I have been trying to change user's passwords in our openLDAP system running on Mac OS X Tiger Server using the ldappasswd utility from the command line on a system remote to the server. For example I enter the command: "ldappasswd -x -h 192.168.1.253 -D "uid=diradmin,cn=users,dc=BOD,dc=local" -s test -W uid=test,cn=users,dc=BOD,dc=local" where 192.168.1.253 is the address of the remote server, diradmin is a administrator of the openLDAP server, and test is the user that i want to change the password of. After I enter diradmin's password, this command returns "Result: Success (0)", but the user's password is actually unchanged on the server. I have also tried configuring the access in the slapd.conf file, adding the line "access to * by * write" to make sure that permissions are not an issue. I still get the same result however. Any ideas on why the password does not get changed?


Hi, Matthew,

For the user in question, what is the User Password Type?

If it is Crypt, then the utilities should work.

But it is probably "Open Directory". In this case the password for this account is stored outside the LDAP database, in OD's Password Server database. The OpenLDAP utilities will not work for changing passwords.

If you are on an OD server you can use the 'passwd' command at the CLI. You could also SSH into the remote OD server and then run the command.

-Matt

--
Matt Richard
Access and Security Coordinator
Computing Services
Franklin & Marshall College
email@hidden
(717) 291-4157



?

Matt Jones - Engineer - BrighTech, Inc. - 612*317*0737 - email@hidden

---------------------------------------------------------------------------------------------
Electronic Privacy Notice
The present e-mail, and all of its attachments, contains information that is covered by the US and/or international electronic communications privacy laws, and is confidential and proprietary in nature. If you are not the intended recipient, please be advised that you are legally prohibited from keeping, using, duplicating, distributing, or otherwise disclosing any of this information in any form. Instead, please notify the sender that you have received this message in error, and then immediately delete it.
Thank you in advance for your cooperation,
BrighTech, Inc.
=============================================================================================




The user password type is open directory. I had explored the passwd command, and using ssh, which does work. The problem I have with this implementation is that I actually need to be able to use a script to change the password, and I can't see any way to feed in the "yes" needed to accept the RSA fingerprint given to me from ssh. Recompiling ssh without the prompt is also not an option. This also complicates things by making it a requirement that each user has SSH on their account, or that i store an account's (with SSH access) information in my script somewhere. Any other thoughts?

matt


On Feb 20, 2007, at 11:09 AM, Matt Richard wrote:

At 10:49 AM -0600 2/20/07, Matthew Jones wrote:

I have been trying to change user's passwords in our openLDAP system running on Mac OS X Tiger Server using the ldappasswd utility from the command line on a system remote to the server. For example I enter the command: "ldappasswd -x -h 192.168.1.253 -D "uid=diradmin,cn=users,dc=BOD,dc=local" -s test -W uid=test,cn=users,dc=BOD,dc=local" where 192.168.1.253 is the address of the remote server, diradmin is a administrator of the openLDAP server, and test is the user that i want to change the password of. After I enter diradmin's password, this command returns "Result: Success (0)", but the user's password is actually unchanged on the server. I have also tried configuring the access in the slapd.conf file, adding the line "access to * by * write" to make sure that permissions are not an issue. I still get the same result however. Any ideas on why the password does not get changed?



Hi, Matthew,

For the user in question, what is the User Password Type?

If it is Crypt, then the utilities should work.

But it is probably "Open Directory". In this case the password for this account is stored outside the LDAP database, in OD's Password Server database. The OpenLDAP utilities will not work for changing passwords.

If you are on an OD server you can use the 'passwd' command at the CLI. You could also SSH into the remote OD server and then run the command.

-Matt

--
Matt Richard
Access and Security Coordinator
Computing Services
Franklin & Marshall College
<mailto:email@hidden>email@hidden
(717) 291-4157






Matt Jones - Engineer - BrighTech, Inc. - 612*317*0737 - <mailto:email@hidden>email@hidden


---------------------------------------------------------------------------------------------
Electronic Privacy Notice
The present e-mail, and all of its attachments, contains information that is covered by the US and/or international electronic communications privacy laws, and is confidential and proprietary in nature. If you are not the intended recipient, please be advised that you are legally prohibited from keeping, using, duplicating, distributing, or otherwise disclosing any of this information in any form. Instead, please notify the sender that you have received this message in error, and then immediately delete it.
Thank you in advance for your cooperation,
BrighTech, Inc.
=============================================================================================


--
Matt Richard
Access and Security Coordinator
Computing Services
Franklin & Marshall College
email@hidden
(717) 291-4157
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macos-x-server mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macos-x-server/email@hidden

This email sent to email@hidden
References: 
 >(no subject) (From: Matthew Jones <email@hidden>)
 >Re: (no subject) (From: Matt Richard <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.