John P . Looney wrote:

>  Actually, this is the code I'm using;
> 
>      $person = mgd_get_person();
...
>      if($person->create()) {
>         echo "Create of $per_username worked!\n";
>      } else {
>         echo "Failed to create an account for $per_username<P>\n";
>      }
>
>  And, it's not working 100%. I'm thinking it has something to do with the fact
> that it's not running as "admin", but as the "john" user (who is an admin
> on that area).

Running as meaning john is logged in and accessing this page?

>  I was hoping that people could just go to this page, and register an
> account for themeselves. Can I do this in anyway, except to hardcode a
> call to mgd_auth_midgard() as the admin user ?

It doesn't need to be the admin user (which would have root privs in a
default SG setup). All that would be needed is either an SG admin, or
a user belonging to a group that owns the group that you're adding new
users to (point for clarity?).

If either doesn't work, that's a bug -- but do remember that in an SG setup,
you need to do mgd_auth_midgard("user+sitegroupname", "pass", 0).

Emile
> 
> Kate
> 
> -- 
>  When I say 'free', I mean 'free': free from bond, of chain or command: 
> to go where you will, even to Mordor, Saruman, if you desire. " 
>     -- Gandalf, paraphrasing the choice between Free and Non-free software
> 


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

Reply via email to