Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using LDAP and php

Status
Not open for further replies.

GigaG

Technical User
Aug 28, 2007
83
US
hello all, I am at a loss. I am using Joomla 1.5 (on a linux Ubuntu box) and it has a plugin for ldap connection. I tried setting it up and I am unable to get it to sync up with my Win03 server AD. I did a phpinfo and ldap support is enabled. The settings I have for the LDAP plugin are as follows:

Host: server02.coleman-home
Port: 389
LDAP V3 : Yes
TLS : No
Follow Referrals: No
Authorization Method: Bind and Search
Base DN: DC=coleman-home,DC=com
Search String= sAMAccountName=[search]
User DN = Blank
Connect username: CN=administrator,DC=coleman-home,DC=com
Map: Full Name : cn
Map:email :mail


I tried running jdiagnostic, but it keeps failing giving me the error Class 'ldapConnector' not found .

Any help would be greatly appreciated

MCP ACA-I CTP
 
i suspect that you are not correctly loading the plugin. or that it is not available where you think it ought to be.
 
That makes no sense... The plugin is installed with Joomla 1.5 automatically. It also should be available for the Login form that comes with Joomla... it made need configuration, but it should work with it

MCP ACA-I CTP
 
it makes sense from a php point of view. an error of 'Class 'ldapConnector' not found' is reported; that is suspiciously similar to the equivalent php native error when it is unable to find a class.

have you _made sure_ that the plugin that is supposedly installed by joomla has stored itself in the environment that joomla expects to find it?

have you tried posting in the joomla support forums or those offered by the author of the LDAP plugin?
 
Yes and yes... and people with the same issues are finding no answers. The issue is not Joomla itself. i understand that the error is similar to a php error. What I'm saying doesn't make sense is the joomla part of it being the issue. The plugin seems to be set up for Joomla 1.4 which did have mambots, so the spot that it was looking in was initially incorrect, but I changed the pointer. There are not includes in the diagnostic script, so it is looking for a class that it thinks php should already have knowledge of.

The actual ldap connector works fine in the sense that no errors are found, so more what I am looking for is the configuration needed to get this working with Joomla 1.5 and server 2003 AD. The diagnostic tool (That is what is giving the actual error) is not essential, just would have been a nice tool for diagnosing what is wrong..


Thanks again

MCP ACA-I CTP
 
for configuration information on getting something working with joomla 1.5 - you really need to talk to joomla!

for information about how to connect to an MS AD via LDAP, you would need to check the instructions that came with the LDAP connector class you are using. a quick google turned up this official wiki which might be of use.


if you are asking for help using the basic php LDAP connectors (ie not a joomla abstraction class) then let us see the code you are using and where it is going wrong (i.e. are you getting errors etc).

Generally this forum does not advise on specific php applications: that tends to be the remit of the application authors. If you think that joomla is worthy of its own forum then please petition the site admins - they tend to be very willing to listen to requests for new forums.
 
Yes I already tried using jauth.... I have been looking on the Joomla site if I found it there... i woldn't be here

MCP ACA-I CTP
 
And just to clarify.... the code at the beginning of the thread is what you would need to know

MCP ACA-I CTP
 
case sensitivity may be an issue. try correcting the sAM in your parameters. you are also using CN and cn interchangeably. Joomla's wiki talks (user notes) talks about how picky the plugin is about case.
 
jpadie,

I must commend you - Reading through this thread felt as if GigaG really did not care for your assistance.

I am almost convinced that you finally pointed out the root cause of his problem and he failed to come back and humbly say "Thank you, that was it!".

Any ways, I am sure you help us all without expectations and that my friend, is your reward.

 
thanks for the thought southbeach. and yup: i contribute because i like doing so. never have any expectations!
 
Just for the record... I was upset because stating the obvious like "Talk to Joomla" is not appropriate as far as I am concerned. There is no reason to post "Talk to joomla" as an answer to your question several times. So thats fine if you guys want to think that I don't care, but i contribute myself to this website all the time and appreciate any assistance I can get, so thank you jpadie and I am truly sorry if I offended you in any way.

MCP ACA-I CTP
 
good lord no. it takes more than that to offend me.

we give advice in the best way we can. if it's not appropriate for you then there's not a lot we can do about it. this is not an application specific forum so 99/100 the advice here will be to talk to the writers of the relevant application if the question is application specific.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top