After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 269611 - LDAP Authentication Fails with username@DOMAIN
LDAP Authentication Fails with username@DOMAIN
Status: RESOLVED FIXED
Product: Evolution Exchange
Classification: Deprecated
Component: Connector
2.0.2
Other All
: Normal major
: 2.0.2
Assigned To: Connector Maintainer
Ximian Connector QA
Depends on:
Blocks:
 
 
Reported: 2004-11-17 16:23 UTC by John T. Ellis
Modified: 2005-01-25 10:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix LDAP authentication using user@domain (2.66 KB, patch)
2004-12-01 00:45 UTC, John Morris
none Details | Review

Description John T. Ellis 2004-11-17 16:23:43 UTC
Moved from Evolution 1.4 (where things worked fantastic) to Evolution 2.01 
in SuSE 9.2. The Global Address List worked fine in 1.4 - but now the same 
settings in 2 do not work. Doing a E2K_DEBUG=4 on the connector I found: 
    
GC: Connecting to ldap://rdc02.company.org:3268/   
** (evolution-exchange-storage:12585): WARNING **: LDAP authentication 
failed (0x31)   
 
This seems to be from the fact that Evolution 2 uses username@DOMAIN 
instead of DOMAIN\username for it's username authentication string. This 
might cause problems for LDAP authentication since some Active Directory 
servers (especially those who have been converted from Exchange 5.5 to 
Global Directory Servers) still require DOMAIN\username. 
 
I attempted to use the patch provided as a result of bug 266926 and I 
noticed a similar one reported with the older 1.4 connector at bug 259395 . 
Neither seemed to work out. 
 
I'm wondering if allowing DOMAIN\username would fix the problem. E-mail, 
tasks and calendaring work fine. 
 
Steps to reproduce the problem: 
1. Login using username@DOMAIN as the username 
2. Try go look at the global address list 
 
Actual Results: 
Error returned stating there is an "incorrect URI, or the server is 
unreachable" 
 
Expected Results: 
Allow query of GAL. 
 
How often does this happen?  
All times.
Comment 1 John Morris 2004-12-01 00:45:47 UTC
Created attachment 44447 [details] [review]
Fix LDAP authentication using user@domain
Comment 2 John Morris 2004-12-01 00:48:17 UTC
I ran into the same thing, and I fixed it in e2k_global_catalog.c 
 
I'm attaching my patch, which I will submit to the evolution-patches 
list tonight. 
 
I have tested it with NTLM compile, and it should work with 
non-NTLM, but I'm not 100% sure. 
 
Comment 3 Sarfraaz Ahmed 2004-12-01 17:31:05 UTC
Ok, the patch seems to be assuming that the user enters his username
as "user@domain" .. where as he is expected to enter only "user" as
his username. This is a wrong assumption. Could you please let me know
what you actually meant by "Login using username@DOMAIN as the
username ". This should clarify things a bit for us.
Comment 4 John T. Ellis 2004-12-02 04:07:25 UTC
Will compile the patch and test things out... 
 
To explain things for Sarfraaz Ahmed - when specifying an Active 
Directory login, the three components are domain, username and 
password. Sometimes a default domain will be specified (as in a 
single-domain directory), but if an organization has multiple domains 
you have to specify which one to authenticate with. 
 
With older releases you could do this by using DOMAIN_NAME\user_name 
as your username. You can't do this with newer releases - the \ 
character isn't parsed. you need to use the alternate format of 
DOMAIN_NAME@user_name. 
Comment 5 John Morris 2004-12-02 17:07:11 UTC
 
Actually, the patch looks to see if "@" exists in the username 
before doing anything different.  This should allow it to work at 
places where this is not required. 
 
I suppose an alternative would be to make domain\username work 
again.  I'm a little unclear on why this stopped working. 
 
Comment 6 John T. Ellis 2004-12-06 16:17:54 UTC
Patch works - I can now query the Global Address List!
Comment 7 Gerardo Marin 2004-12-06 20:46:11 UTC
Reopening until this is commited.
Comment 8 John T. Ellis 2004-12-14 19:58:35 UTC
This works for me after applying Sarfraaz' patch to #66926 for
form-based authentication - however I had to delete my settings in
.gconf, .gnome2 and .evolution for things to take effect.
Comment 9 Sarfraaz Ahmed 2005-01-25 10:44:11 UTC
This has been committed to 2.0.3 branch as well as to HEAD [ 2.1 ]