Re: [webmin-devel] Temporary user account disabling - mechanism details

"Jamie Cameron" <[email protected]>
Newsgroups gmane.comp.web.webmin.devel
Message-ID <[email protected]>
On 30/Aug/2007 07:41 Fran Fabrizio wrote ..
> 
> Can someone briefly explain or point to me where in the code the
> behavior to temporarily disable accounts (I'm specifically looking at
> the LDAP module but this may be more general than that)?  I have peeked
> at the code and I thought it was some method of appending/prepending a
> string onto the crypt'ed password string to disable it, but I notice
> that the crypt'ed string doesn't change when I disable an account.  I
> need to disable about 1,000 accounts, and I remembered that webmin had
> this function, but I want to script similar behavior in this case if I
> can.

Hi Fran,

The way Webmin does it is to prepend a ! to the encrypted password, which
makes it invalid. This can be easily removed by the code when you want
to re-enable the account.

You can see this in the code in ldap-useradmin/save_user.cgi line 264.

 - Jamie

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
-
Forwarded by the Webmin development list at [email protected]
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.