Well, the problem is, my script only works as root as normal users can't 
access the shadow file or the useredit program.  I wanted to do it in 
reverse, when xmail's userpasswd command is called, it changes the 
system password.  I think I will just disallow users to change their own 
password altogether, until I think of another solution.
Dustin C. Hatch
http://www.dchweb.com

Davide Libenzi wrote:

>On Fri, 19 Nov 2004, Dustin C. Hatch wrote:
>
>  
>
>>I have one quick question, and then I think I have got it.  When is the 
>>useredit called from $XMAIL_ROOT/userauth/pop3/domain.tab?  What I am 
>>planning is to write a script that takes the place of the passwd program 
>>that calls CtrlClnt to change the password in xmail, which calls said 
>>file and also changes the system password.  What I need to know is what 
>>invokes the useredit command in that file.  Will CtrlClnt -s server -u 
>>user -p password userpass domain username password call it?  If so, I 
>>think I have figured out this whole external auth thing!
>>    
>>
>
>Forget about useredit and the stuff inside userauth/. Just hook to your 
>password change setup, a script that uses the CTRL interface to issue a 
>"userpasswd" command.
>
>
>
>- Davide
>
>-
>To unsubscribe from this list: send the line "unsubscribe xmail" in
>the body of a message to [EMAIL PROTECTED]
>For general help: send the line "help" in the body of a message to
>[EMAIL PROTECTED]
>
>
>  
>


-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]

Reply via email to