Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Changing the user's password in SquirrelMail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing the user's password in SquirrelMail



Patrick Gallagher wrote:
SquirrelMail doesn't have the ability to change passwords. You would
probably need a custom web app to do that.

That's usually done via a SquirrelMail plugin for the specific architecture. There are quite a few around, downloadable from their website.


Dan Shoop wrote:
mail:~ root# niutil -destroyprop / /users/USERNAME passwd
mail:~ root# openssl passwd -crypt NEWPASSWORD
TahtRlmey6pWs
mail:~ root# niutil -createprop / /users/USERNAME passwd TahtRlmey6pWs
mail:~ root# niutil -readprop / /users/USERNAME passwd
TahtRlmey6pWs


It simply does not work (you can then use the serversetup command line utility and you see that the new password is not accepted). If it worked, one might write a plugin for Squirrelmail.


This does work, provided you have netinfo accounts for the users

I do

Obviously if your user accounts are in LDAP

They aren't

then this should not be expected to work and you're guilty of sloppy thinking.

Liar, liar, pants on fire. Look:

1. First I create a brand new user in Workgroup Mgr as email@hidden. Password is "test". No shell, no homedir, no print quota, no file server access, just email.

2. I check that is works:
mail:~ root# /System/Library/ServerSetup/serversetup - verifyNamePassword email@hidden test
1


3. I try to change the password via niutil:
mail:~ root# niutil -destroyprop / /users/passwordaccomazzinet passwd
mail:~ root# openssl passwd -crypt 12345
gQwpvCLCiBzLg
mail:~ root# niutil -createprop / /users/passwordaccomazzinet passwd gQwpvCLCiBzLg


4. Even though I got no error, I recheck everything:
niutil -readprop / /users/passwordaccomazzinet passwd
gQwpvCLCiBzLg

5. It looks like it worked, but:
mail:~ root# /System/Library/ServerSetup/serversetup - verifyNamePassword email@hidden 12345
0


It doesn't. ("Zero" means "wrong password" in serversetup. See http:// images.apple.com/server/pdfs/Command_Line_v10.4_2nd_Ed.pdf)

Luca

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macos-x-server mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden




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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.