John-Andrew Minniti wrote:
> OK, it may be in the documentation, but I didn't see it.
>
> Is there any easy way to get error codes when using mgd_auth_midgard
> procedure so the person logging in knows why it failed (e.g., no user, wrong
> password, etc.).
New in CVS. if mgd_auth_midgard returns false, mgd_errno() will be one
of the following:
MGD_ERR_NOT_CONNECTED: no connection to the Midgard database. Not
necesarily a fatal error since filetemplates in disconnected mode
should return exactly this.
MGD_ERR_INVALID_NAME: the username contained invalid characters
MGD_ERR_SG_NOTFOUND: nonexistant sitegroup
MGD_ERR_DUPLICATE: duplicate username found (in sitegroup if you have
it enabled).
MGD_ERR_NOT_EXISTS: no such user
MGD_ERR_ACCESS_DENIED: invalid password or double reauth.
MGD_ERR_INTERNAL: unhandled (unexpected) error occured. Report this as
a bug.
Emile
--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org
To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]