John P . Looney wrote:

> On Thu, Mar 08, 2001 at 01:32:22PM +0100, Emiliano mentioned:
> > Running as meaning john is logged in and accessing this page?
> 
>  Yes. It's strange. When I was logged in as john, it could create
> a person record, and set everything but the username & password. Must test
> it more.

Using the object functions? Just checked, and that's exactly the two
fields that don't get updated. The username and password must
currently be updated separately using mgd_update_password or
mgd_update_password_plain.

>  Hmm. I'll try that, thanks. Actually, if someone is logged in - can I
> save the old authentication information, and do mgd_auth_midgard(admin
> info) just before the create, and the mgd_auth_midgard(old info)
> afterwards ?

No. You'd have to gather username and sitegroup, after which you could
do

mgd_auth_midgard("adminuser=olduser+sitegroup", "adminpass", 0)

What you're proposing is useful though. We've discussed it before,
can't rememer why it didn't go anywhere.

Emile


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to