Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
  #1 (permalink)  
Old 05-17-2008, 08:21 AM
bubarooni bubarooni is offline
Special Member
 
Join Date: Mar 2007
Posts: 119
bubarooni is on a distinguished road
Default The Mysteries of External LDAP Authentication

OK, this isn't a show stopper, but I really wanted my users to be authenticated against my nt 4.0 domain. I'd prefer they use their Domain username. I'm really having trouble with the syntax and have not found a doc that explains it in absurdly simple terms so I'm stuck.

I have an exchange 5.5 server on NT 4.0. It is also the PDC.

I can telnet to the exchange server from the zimbra server with no problem. When I try to use the config wizard I can't get it to work for nothing. Here is what I am currently using:

Summary of authenticaion settings:

Authentication mechanism: External LDAP
LDAP URL: ldap://192.168.1.222:389
LDAP filter: =%u@mydom.com
LDAP search base: p=mydom;o=CORPORATE;
Use DN/Password to bind to external server: No

Please provide username and password to test the authentication settings
User name:
Password

I'm sure that my problem is the syntax I'm using in the LDAP filter and LDAP search base, I've tried dozens of different combos of examples I've found on this site and others. I'm sure I'm hitting the LDAP for authentication as several of the 'things' I've tried have returned errors like 'object does not exist'.

A typical x400 email address on my Exchange Server looks like:

x400 c=US;a= ;p=mydom;o=CORPORATE;s=Schmoe;g=Joe

Thanks In Advance
Reply With Quote
  #2 (permalink)  
Old 05-17-2008, 08:45 AM
Klug's Avatar
Klug Klug is offline
Moderator
 
Join Date: Mar 2006
Location: Beaucaire, France
ZCS Version: Several 4.5.x & 5.0.x (NE and OSS) on RedHat for HSP & customers
Posts: 1,313
Klug is on a distinguished road
Send a message via MSN to Klug Send a message via Skype™ to Klug
Default

Are you sure you can do auth against your (old) Exchange's LDAP server ?

It seems to me (but I can be wrong) that this LDAP can only be use to browser/search things in it but it's impossible to do any auth against it.
You can only do auth against an AD's LDAP server (that you don't have, as you're running NT4.
Reply With Quote
  #3 (permalink)  
Old 05-17-2008, 09:14 AM
bubarooni bubarooni is offline
Special Member
 
Join Date: Mar 2007
Posts: 119
bubarooni is on a distinguished road
Default

well, if it can't be done then it won't be a show stopper. this is actually the first step in getting rid of the nt 4.0. with the exchange server replaced i'm planning on replacing the box with a MS Server 2008 and CentOS samba combo for authentication.

with the mydom.com was one of the 'things' i was trying. read the wiki already, my syntax needs polishing though!

=%u returns:
soap:Receiver
system failure: java.lang.ArrayIndexOutOfBoundsException: -1

%u= returns:
javax.naming.CommunicationException: [LDAP: error code 2 - Protocol Error]; remaining name 'p=mydom;o=CORPORATE;'


2 LDAP_PROTOCOL_ERROR: Indicates that the server has received an invalid or malformed request from the client

which is why i think i'm using wrong syntax.
Reply With Quote
  #4 (permalink)  
Old 05-17-2008, 10:08 AM
bubarooni bubarooni is offline
Special Member
 
Join Date: Mar 2007
Posts: 119
bubarooni is on a distinguished road
Default

i guess i'm just looking for examples that other people have used. i think i can figure it out if i see some real examples.
Reply With Quote
  #5 (permalink)  
Old 05-17-2008, 12:26 PM
Rich Graves Rich Graves is offline
Elite Member
 
Join Date: Jan 2007
Location: Minnesota
ZCS Version: 5.0.6_GA_2313.RHEL4_64_20080522093238 RHEL4_64 NETWORK
Posts: 363
Rich Graves is on a distinguished road
Default

Try

LDAP filter: samaccountname=%u

Left side is the attribute to match; %u is replaced with username. The above would be for Active Directory. If the legacy Exchange LDAP service provides no single unique attribute to search for, then you'd lose, but I'd be surprised.

LDAP search base is specified from most to least specific, something like:

LDAP search base: o=corporate,p=mydom,c=US

Is the a=(BLANK) above a typo or an html scrubbing artifact? It's invalid.
Reply With Quote
  #6 (permalink)  
Old 05-19-2008, 11:17 AM
bubarooni bubarooni is offline
Special Member
 
Join Date: Mar 2007
Posts: 119
bubarooni is on a distinguished road
Default

i'll be going to active directory in july/august timeframe, so it's good to know the samaccountname thing.

from what i've dug up on it since i read your post, i think it may be supported under NT too and will give it a try!
Reply With Quote
  #7 (permalink)  
Old 05-21-2008, 11:17 AM
bubarooni bubarooni is offline
Special Member
 
Join Date: Mar 2007
Posts: 119
bubarooni is on a distinguished road
Default

I'm getting there!

Server message: Authentication failed. Invalid credentials (bad dn/password)

just gotta figure out what that error means now.
Reply With Quote
  #8 (permalink)  
Old 05-21-2008, 02:07 PM
bubarooni bubarooni is offline
Special Member
 
Join Date: Mar 2007
Posts: 119
bubarooni is on a distinguished road
Default

i actually have the exchange server set for doing anonymous searches, but it keeps giving me that:

Server message: Authentication failed. Invalid credentials (bad dn/password)
error message.

on the third page of the Authentication Configuration Wizard there is a place to use a dn/password combo.

the help doc says:

Use DN/Password to bind to external server. If the filter you entered cannot be run using an anonymous bind, then enter the DN/password for a service account on the external LDAP that has been granted access to the attributes required to do the search.

when i look in the exchange server 5.5 ldap settings it shows me the Service Account Admin user and I tried that like this:

Bind DN: cn=ThatUser;dc=MyDom;dc=com;
and
MyDom\ThatUser

all to no avail.

What should I be using for that Bind/DN?
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
External LDAP with GSSAPI authentication method izvictor Installation 16 05-27-2008 09:58 PM
External LDAP authentication problem mchamboredon Installation 2 01-16-2008 09:02 AM
External LDAP Problem facerw Installation 7 05-08-2007 04:29 AM
External LDAP Authentication Issue xtreme-one Installation 10 02-16-2007 06:52 PM
Authentication to external ldap stop working. jahaj Installation 3 12-05-2006 02:17 PM


freshmeat.net sourceforge.net The best Java IDE



 

Search Engine Optimization by vBSEO 3.0.0