[Zope] LDAPUserFolder Question
    Jens Vagelpohl 
    jens at dataflake.org
       
    Fri Jan  5 18:58:29 EST 2007
    
    
  
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 6 Jan 2007, at 00:42, Maciej Wisniowski wrote:
>> <dtml-call expr="REQUEST.set 
>> ( 'User_Name',REQUEST.AUTHENTICATED_USER.getUserName())">
>>
>> I get the uid and not the cn.  Any idea how I can get the cn?
> Maybe:
> REQUEST.AUTHENTICATED_USER.getUserDN()
> ?
>
> Take a look into LDAPUser.py
getUserDN wont return the "cn" attribute, it will return the full  
distinguished name ;)  You can use <user_object>.getProperty('cn').
jens
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFFnuYlRAx5nvEhZLIRAiv6AKCmNcKbE1D1bRGCvaGwxBGMS5e9xACgspCj
P5StEDSIobv5O62Cq/fi4OU=
=ExJy
-----END PGP SIGNATURE-----
    
    
More information about the Zope
mailing list