Koozali.org: home of the SME Server

LDAP connection

Offline kippi

  • **
  • 23
  • +0/-0
LDAP connection
« on: December 02, 2009, 01:28:09 PM »
Hey,

I am trying to connect to connect to LDAP auth from Drupal using a module called LDAP. When I try and login as a user I am getting an error message: "LDAP Bind failure for user uid=swa,dc=mydomain,dc=co,dc=uk. Error 49: Invalid credentials"

If I use LDAP explorer I can connect as anonymous and can see all my users.

Could someone help me debug this?

Many Thanks

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: LDAP connection
« Reply #1 on: December 02, 2009, 02:00:55 PM »
Hey,

I am trying to connect to connect to LDAP auth from Drupal using a module called LDAP. When I try and login as a user I am getting an error message: "LDAP Bind failure for user uid=swa,dc=mydomain,dc=co,dc=uk. Error 49: Invalid credentials"

If I use LDAP explorer I can connect as anonymous and can see all my users.

Could someone help me debug this?
There is not much information to debug here. The error seems clear enough: you need to provide the proper credentials as the one you have configured currently seem to be incorrect.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline kippi

  • **
  • 23
  • +0/-0
Re: LDAP connection
« Reply #2 on: December 02, 2009, 02:47:13 PM »
The username and password are 100% correct. The user is able to login using from there machine.

Is there something where I have to reset the admin password?

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: LDAP connection
« Reply #3 on: December 02, 2009, 03:25:47 PM »
The username and password are 100% correct. The user is able to login using from there machine.

Is there something where I have to reset the admin password?
Does the user you use also have access to the OU you are trying to read? It might be different as to the one you are trying against.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline kippi

  • **
  • 23
  • +0/-0
Re: LDAP connection
« Reply #4 on: December 02, 2009, 03:49:08 PM »
Trying to do it with the admin account, this should have access to everything.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: LDAP connection
« Reply #5 on: December 02, 2009, 03:57:04 PM »
I am trying to connect to connect to LDAP auth from Drupal using a module called LDAP. When I try and login as a user I am getting an error message: "LDAP Bind failure for user uid=swa,dc=mydomain,dc=co,dc=uk. Error 49: Invalid credentials"

If I use LDAP explorer I can connect as anonymous and can see all my users.

SME server has no authentication information (passwords) in ldap. You cannot do LDAP auth.

Offline kippi

  • **
  • 23
  • +0/-0
Re: LDAP connection
« Reply #6 on: December 02, 2009, 04:02:28 PM »
Ah that will be why I can't do this. Is there away to link apache auth into SME Server?

Offline kippi

  • **
  • 23
  • +0/-0
Re: LDAP connection
« Reply #7 on: December 02, 2009, 09:21:34 PM »
Was looking and it would seem that I could run:

yum install e-smith-base+ldap e-smith-samba+ldap --enablerepo=smetest --enablerepo=smeupdates-testing

and this would install the full ldap support?

Many Thanks

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: LDAP connection
« Reply #8 on: December 02, 2009, 09:25:54 PM »
Was looking and it would seem that I could run:

yum install e-smith-base+ldap e-smith-samba+ldap --enablerepo=smetest --enablerepo=smeupdates-testing

and this would install the full ldap support?

You would be installing incomplete, buggy and unsupported software, with possibly no upgrade path. But what you are trying might then work, yes.


Offline kippi

  • **
  • 23
  • +0/-0
Re: LDAP connection
« Reply #9 on: December 02, 2009, 09:42:17 PM »
Ok, don't really want to go down that route, but don't really see any other way forward unless someone can shed some light onto another way of doing it?

Online Stefano

  • *
  • 10,894
  • +3/-0
Re: LDAP connection
« Reply #10 on: December 02, 2009, 10:36:38 PM »
well, in your first post you were talking about drupal..

please expose your problem and not the solution :-)

Offline kippi

  • **
  • 23
  • +0/-0
Re: LDAP connection
« Reply #11 on: December 03, 2009, 12:08:38 PM »
Ok, we have an internal web server where we would like to allow our users to login to the site with there windows logins. I was trying to use an Drupal module that will connect to ldap but as I have found out SME will not support this.

I need away to get apache to auth with the SME Server, we are using two differenet servers for this, drupal is not running on the SME server.

Many Thanks

Chris.

Online Stefano

  • *
  • 10,894
  • +3/-0
Re: LDAP connection
« Reply #12 on: December 03, 2009, 12:54:18 PM »
AFAIR (but I could easily be wrong) there should be ntlm module auth.. google will tell you more :-)

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: LDAP connection
« Reply #13 on: December 03, 2009, 02:11:52 PM »
Or maybe drupal supports imap auth ?
C'est la fin du monde !!! :lol:

Offline kippi

  • **
  • 23
  • +0/-0
Re: LDAP connection
« Reply #14 on: December 03, 2009, 04:15:42 PM »
I used ntlm module, I've setup apache to auth and then drupal is trusting this connection.

I used this site to help me: http://drupal.org/node/44718

Seems to be working well, thanks very much for your help.

Chris