Good Afternoon, I am trying to get the TracDirectoryAuth Plugin working. I am using LDAP to bind to Windows Active Directory (AD). Trac seems to successful bind to and retrieve the list of Users, Display names and email addresses. (See trac.log below)
In the Accounts --> Users, the list of users seems to be correct, but display names and email address are missing. I am not a Python programmer, but from what I can see in auth.py from the plugin, the routine "_get_userinfo" is working. The issue seems to be in "_populate_user_session". Can some please help? Cheers, David J. [cid:image001.png@01D3A9A9.215E1F20] Trac.log 2018-02-19 17:29:05,225 Trac[auth] INFO: _bind_dir: Bound to ldap://locata.com:3268 correctly. 2018-02-19 17:29:05,226 Trac[auth] INFO: get users 2018-02-19 17:29:05,312 Trac[auth] INFO: get users: [('thailesilase', 'Tes Hailesilase', 'tes.hailesil...@locata.com'), ('nnadarajah', 'Nanthi Nadarajah', 'nanthi.nadara...@locata.com'), ('mdeo', 'Manoj Deo', 'manoj....@locata.com'), ('rfla ws', 'Robyn Flaws', 'robyn.fl...@locata.com'), ('dabeywardana', 'Damith Abeywardana', 'damith.abeyward...@locata.com'), ('cbasnayake', 'Chaminda Basnayake', 'chaminda.basnay...@locata.com'), ('jlamance', 'Jimmy LaMance', 'jimmy.lamance@loca ta.com'), ('agupta', 'Ashish Gupta', 'ashish.gu...@locata.com'), ('xying', 'Xuhua Ying', 'xuhua.y...@locata.com'), ('mka nli', 'Mustafa Kanli', 'mustafa.ka...@locata.com'), ('isainsbery', 'Ian Sainsbery', 'ian.sainsb...@locata.com'), ('jcolo mbo', 'Julian Colombo', 'julian.colo...@locata.com'), ('jgordon', 'John Gordon', 'john.gor...@locata.com'), ('avonbrasch ', 'Arved von Brasch', 'arved.vonbra...@locata.com'), ('akumar', 'Anil Kumar', 'anil.ku...@locata.com'), ('gatkins', 'Gr aham Atkins', 'graham.atk...@locata.com'), ('cgumbrell', 'Clayton Gumbrell', 'clayton.gumbr...@locata.com'), ('hchen', ' Hong Chen', 'hong.c...@locata.com'), ('znazir', 'Zaim Nazir', 'zaim.na...@locata.com'), ('adavey', 'Adam Davey', 'adam.d a...@locata.com'), ('srichards', 'Sue Richards', 'sue.richa...@locata.com'), ('dsmall', 'David Small', 'david.small@loca ta.com'), ('aczezowski', 'Adam Czezowski', 'adam.czezow...@locata.com'), ('dwebb', 'Danni Webb', 'danni.w...@locata.com' ), ('jbarnes', 'Joel Barnes', 'joel.bar...@locata.com'), ('dperriman', 'David Perriman', 'david.perri...@locata.com'), ( 'kmodrak', 'Kris Modrak', 'kris.mod...@locata.com'), ('mskeen', 'Mike Skeen', 'mike.sk...@locata.com'), ('thobbs', 'Trev or Hobbs', 'trevor.ho...@locata.com'), ('jamt', 'John Amt', 'john....@locata.com'), ('pbenshoof', 'Paul Benshoof', 'paul .bensh...@locata.com'), ('tgriffiths', 'Tony Griffiths', 'tony.griffi...@locata.com'), ('djohnstone', 'David Johnstone', 'david.johnst...@locata.com')] Trac.ini [account-manager] allow_delete_account = enabled auth_init = disabled cache_ttl = 90 dir_basedn = DC=locata,DC=com dir_binddn = x...@locata.com dir_bindpw = xxx dir_scope = 1 dir_uri = ldap://locata.com:3268 environ_auth_overwrite = enabled force_passwd_change = enabled group_basedn = OU=Locata Groups,DC=Locata,DC=com group_knownusers = disabled group_nested = disabled group_spaces2underscore = disabled group_validusers = @AllStaff htpasswd_file = /srv/trac/passwd/trac.passwd htpasswd_hash_type = md5 login_opt_list = disabled password_store = HtPasswdStore,DirAuthStore persistent_sessions = disabled refresh_passwd = disabled require_approval = disabled reset_password = disabled verify_email = enabled Apach2 config WSGIScriptAlias / /srv/trac/scripts/trac.wsgi <Directory /srv/trac/scripts> Require all granted WSGIApplicationGroup %{GLOBAL} </Directory> <Location /login> AuthType Basic Authname "Trac" AuthBasicProvider "file" "ldap" AuthLDAPURL "ldap://locata.com:3268/DC=locata,DC=com?sAMAccountName?sub?(objectClass=user)" AuthLDAPBindDN x...@locata.com AuthLDAPBindPassword "xxx" AuthUserFile /srv/trac/passwd/trac.passwd Require valid-user </Location> -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscr...@googlegroups.com. To post to this group, send email to trac-users@googlegroups.com. Visit this group at https://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/d/optout.