phpgroupware-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-developers] id2name, groups, ldap


From: Mathew Hennessy
Subject: [Phpgroupware-developers] id2name, groups, ldap
Date: Tue, 01 Oct 2002 18:42:11 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2a) Gecko/20020910

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,
        I've been wrestling somewhat with getting phpgw to work with our
existing ldap environment.  I have separate OUs for people and groups
(ou=people and ou=groups off our o=netomat.net, not too creative :) and
I had an issue with mail selecting the cn of the user's id number for
its username.  That is, my username (hennessy)'s uid of 501 matched the
group (ops) gid of 501, and mail was prefilling in the username entries
with the cn from the group object rather than the uid of the user
object.  I tracked this down to id2name() in

        phpgwapi/inc/class.accounts_ldap.inc.php

        And I hacked it to create uid2name and gid2name functions (doing what
you'd think) as well as changing id2name into a wrapper around uid2name.
~ This "fixed" this particular issue, and I'm looking to go thru the
.9.14 tarball and see where id2name pops up, then try to "fix" this
problem by figuring out the context and supplying a leading 'u' or 'g'
as appropriate.  I bet this will break stuff in the SQL backend, and
I'll see if I can rearchitect this to fit SQL, but it's definitely a
really bad interaction with LDAP.  One cannot assume in LDAP that uids
and gids are unique across namespaces, particularly in already-existing
LDAP infrastructures.

Wish me luck ;)
- - Matt
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE9miTD7BJ9/NG41/oRAuu4AJ9TG9r3TRgQcUF0rzIPiEN+cB9TQgCdEOfG
55XtPqX1bwVCOth6omk+dUI=
=Mplk
-----END PGP SIGNATURE-----





reply via email to

[Prev in Thread] Current Thread [Next in Thread]