Re: Instance Password

"Andrew Higgs" <[email protected]> Tue, 14 Oct 2008 17:16:10 +0200
Newsgroups gmane.comp.cms.opengroupware.user
Message-ID <[email protected]>
Hi Adam,

On Tue, Oct 14, 2008 at 4:40 PM, Adam Tauno Williams
<[email protected]>wrote:

>
> > If I run the following command :
> > ogo-account-add -l root -p rootpass -login "andrew" -password "secret"
> > -firstname "Andrew" -lastname " Higgs" -email1 "myemail"
> > then the account is created with a blank password and the email is
> > also left blank.
> > This is the output from running the above command :
> > Oct 14 13:29:41 ogo-account-add [21530]: Note: storing cached vCards
> > files in: '/var/lib/opengroupware.org/documents'
> > Oct 14 13:29:41 ogo-account-add [21530]: account::change-password:
> > using password field: 'userPassword'
> > Oct 14 13:29:41 ogo-account-add [21530]: Note: members of role team
> > 'team creators' are allowed to create teams.
> > Oct 14 13:29:41 ogo-account-add [21530]: Note: PostgreSQL72 adaptor
> > using timezone 'GMT' as default
> > I believe the second line holds a clue I cannot decipher. :-) Not sure
> > why the email is left blank.
>
> It at least means the change-password command is getting pinged.
>
> > Thanks for all the help. It is appreciated.
>
> Enable PG debugging and run the command.  Then we should see exactly
> what it is doing with the database server.


Wow, lots more output. I sifted through and  can only find one insert into
person.

Oct 14 14:59:52 ogo-account-add [31816]: PG0x0x844ea94 SQL:

INSERT INTO person (email_alias, company_id, url, office, im_address,
associated_company, sex, is_customer, associated_contacts, show_email_as,
show_email3_as, degree, password, number, middlename, boss_name, owner_id,
pop3_account, firstname, template_user_id, source_url, fileas,
is_template_user, freebusy_url, dir_server, associated_categories, name,
salutation, occupation, is_account, db_status, is_person, contact_id,
keywords, is_extra_account, assistant_name, show_email2_as, login,
is_private, name_affix, birthday, object_version, is_locked, priority,
sensitivity, name_title, description, anniversary, is_readonly,
is_intra_account, department, partner_name)

VALUES (null, 33891, null, null, null, null, null, null, null, null, null,
null, null, 'OGo33891', null, null, 10000, null, 'Andrew', 9999, null, null,
null, null, null, null, 'Higgs', null, null, 1, 'inserted', 1, null, null,
0, null, null, 'andrew', null, null, null, 1, null, null, null, null, null,
null, null, 1, null, null)

Password is null and email doesn't even appear. :-( Are there any other
inserts I should be looking for... There don't seem to be any 'ALTER person'
sql's either.


>
> Defaults write NSGlobalDomain PGDebugEnabled YES
>
>

Thanks.