-----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-----
_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to