You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@vcl.apache.org by António Aragão <aa...@di.uminho.pt> on 2014/05/22 10:31:53 UTC

LDAP

Hi,

anyone knows what information is relevant from LDAP ? What fields are
used from LDAP ?

uidNumber ?
gidNumber ?

Thanks.


-- 
http://www.di.uminho.pt/~apa/email/cartao_virtual_email_aaragao.png

Re: LDAP

Posted by António Aragão <aa...@di.uminho.pt>.
Thanks Josh. I get the picture.

2014-05-22 14:16 GMT+01:00 Josh Thompson <jo...@ncsu.edu>:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> António,
>
> Look in the web code at .ht-inc/conf-default.php.  Scroll down until you find
> "EXAMPLE1 LDAP" in the $authMechs array.  It has all of the fields that are
> needed from LDAP with comments explaining each one.  It also provides a
> mapping from what you have in LDAP to what VCL requires.  So, the default
> values from which it pulls firstname and lastname are givenname and sn, but if
> your LDAP system used different attributes, you can easily change it to what
> your system was using.
>
> There is one field that is not listed there that can be added - 'numericid'.
> If you add that as an array key, you can set the value to whatever attribute
> is used in LDAP for the user's numeric id.  Then, the user.uid field is
> populated with the value.  For example, under the
>
> "email" => "mail",
>
> line, you could add something like
>
> "numericid" => "uidNumber"
>
> Josh
>
> On Thursday, May 22, 2014 9:31:53 AM António Aragão wrote:
>> Hi,
>>
>> anyone knows what information is relevant from LDAP ? What fields are
>> used from LDAP ?
>>
>> uidNumber ?
>> gidNumber ?
>>
>> Thanks.
> - --
> - -------------------------------
> Josh Thompson
> VCL Developer
> North Carolina State University
>
> my GPG/PGP key can be found at pgp.mit.edu
>
> All electronic mail messages in connection with State business which
> are sent to or received by this account are subject to the NC Public
> Records Law and may be disclosed to third parties.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.22 (GNU/Linux)
>
> iEYEARECAAYFAlN9+MEACgkQV/LQcNdtPQMHrACdGUveT2vc4OymgifTJE+NEI90
> jv0An07fbXNi81cXc+3bldKoG8yRQDt4
> =SGqb
> -----END PGP SIGNATURE-----
>



-- 
http://www.di.uminho.pt/~apa/email/cartao_virtual_email_aaragao.png

Re: LDAP

Posted by Josh Thompson <jo...@ncsu.edu>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

António,

Look in the web code at .ht-inc/conf-default.php.  Scroll down until you find 
"EXAMPLE1 LDAP" in the $authMechs array.  It has all of the fields that are 
needed from LDAP with comments explaining each one.  It also provides a 
mapping from what you have in LDAP to what VCL requires.  So, the default 
values from which it pulls firstname and lastname are givenname and sn, but if 
your LDAP system used different attributes, you can easily change it to what 
your system was using.

There is one field that is not listed there that can be added - 'numericid'.  
If you add that as an array key, you can set the value to whatever attribute 
is used in LDAP for the user's numeric id.  Then, the user.uid field is 
populated with the value.  For example, under the 

"email" => "mail",

line, you could add something like 

"numericid" => "uidNumber"

Josh

On Thursday, May 22, 2014 9:31:53 AM António Aragão wrote:
> Hi,
> 
> anyone knows what information is relevant from LDAP ? What fields are
> used from LDAP ?
> 
> uidNumber ?
> gidNumber ?
> 
> Thanks.
- -- 
- -------------------------------
Josh Thompson
VCL Developer
North Carolina State University

my GPG/PGP key can be found at pgp.mit.edu

All electronic mail messages in connection with State business which
are sent to or received by this account are subject to the NC Public
Records Law and may be disclosed to third parties.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iEYEARECAAYFAlN9+MEACgkQV/LQcNdtPQMHrACdGUveT2vc4OymgifTJE+NEI90
jv0An07fbXNi81cXc+3bldKoG8yRQDt4
=SGqb
-----END PGP SIGNATURE-----