Re: Password encryption

[email protected] Thu, 9 Oct 2008 11:50:30 +0100
Newsgroups gmane.comp.cms.opengroupware.user
Message-ID <[email protected]>
Hi Andrew,

I believe it is a standard unix crypt function that is encrypting the 
passwords.  I just checked on my installation and there is this file: 
/usr/local/bin/ogo-account-add.  I expect that will encrypt the passwords 
for you (so no need for SQL).  Hopefully someone else will jump in if I'm 
off the mark and this program is deprecated.

Usage: sky_add_account [OPTIONS]...
This tool creates a new OGo account.
Arguments:
        -h, --help      display this help
        --version       output version information
        -v, --verbose   enter verbose mode
        -l              login name
        -p              password
        -login          account login
        -firstname      ccount first name
        -lastname       account last name
        -nickname       nickname
        -email1         email1 (aka email1)
        -email2         email2 (aka email2)
        -email3         email3 (aka email3)
        -phone          account phone
        -mobile         account mobile phone
        -fax            account fax number
        -title          account title
        -password       password (cleartext string)

Bernard

[email protected] wrote on 09/10/2008 08:55:42:

> [image removed] 
> 
> [OGo-Users] Password encryption
> 
> Andrew Higgs 
> 
> to:
> 
> users
> 
> 09/10/2008 11:43
> 
> Sent by:
> 
> [email protected]
> 
> Please respond to users
> 
> Hi everyone,
> 
> I am trying to automate the bulk adding of users. I am currently 
> doing an insert into "person" and a matching insert into "staff". 
> All seems to be working except for password. How are these encrypted?
> 
> I can either setup users with a blank password or put in a pre-
> encrypted password. If I do copy a password from another user to use
> as a default, then the newly inserted user can't change their 
> password. They can login but the password change fails.
> 
> How can I take a plaintext password from a file and encrypt it so 
> that it can be inserted into the db?
> 
> All assistance will be greatly appreciated.
> 
> Kind regards
> Andrew Higgs
-- 
OpenGroupware.org Users
[email protected]
http://mail.opengroupware.org/mailman/listinfo/users