PHP and LDAP servers
Moderator: Forum Moderators
-
- Zombie
- Posts: 2101
- Joined: February 20th, 2005, 21:31
PHP and LDAP servers
I was wondering if anyone has some ideas how to get php to work with an LDAP server...
I've installed the ldap module, and with a bit of fiddling just about connected it to an exchange server, but it doesn't need to be exchange if its easier with something else. Anyway, it doesn't seem to be able to read any data and errors all over the place. Guides on the net seem rather scant on details.
I just need to be able to add & remove email addresses to the ldap server, thats it.
Anyone tried doing anything like that?
I've installed the ldap module, and with a bit of fiddling just about connected it to an exchange server, but it doesn't need to be exchange if its easier with something else. Anyway, it doesn't seem to be able to read any data and errors all over the place. Guides on the net seem rather scant on details.
I just need to be able to add & remove email addresses to the ldap server, thats it.
Anyone tried doing anything like that?
can exchange serve LDAP?
i know it can read from AD or LDAP but never come across it that way round
EDIT
google says LDAP and exchange share some ports and can fight
a real LDAP server or AD might be more fruitful
something to bear in mind with AD, it won't give any information out until you 'bind' with a valid username and password
i know it can read from AD or LDAP but never come across it that way round
EDIT
google says LDAP and exchange share some ports and can fight
a real LDAP server or AD might be more fruitful
something to bear in mind with AD, it won't give any information out until you 'bind' with a valid username and password
-
- Zombie
- Posts: 2101
- Joined: February 20th, 2005, 21:31
-
- Zombie
- Posts: 2101
- Joined: February 20th, 2005, 21:31
-
- Zombie
- Posts: 2101
- Joined: February 20th, 2005, 21:31
Does this example work?
http://uk2.php.net/manual/en/ldap.examples.php
also, it might be worth checking the security log on the AD server, as it might want encryption or something?
http://uk2.php.net/manual/en/ldap.examples.php
also, it might be worth checking the security log on the AD server, as it might want encryption or something?
-
- Shambler In Drag
- Posts: 780
- Joined: March 16th, 2007, 20:22
- Location: on the sofa
- Contact:
Afraid I can't help much either, I've used phpLDAPadmin: "LDAP browser to manage your LDAP server" - in the past with OpenLDAP , maybe check out the source code for phpLDAPadmin for inspiration (or just use it)
p.s. LDAP's a bitch with dn this and dc & cn that - then throw MS into the mix for AD support and well.... There's a reason I stay away from it as much as possible
p.s. LDAP's a bitch with dn this and dc & cn that - then throw MS into the mix for AD support and well.... There's a reason I stay away from it as much as possible
-
- Morbo
- Posts: 19676
- Joined: December 10th, 2004, 21:53
- Contact:
-
- Zombie
- Posts: 2101
- Joined: February 20th, 2005, 21:31
its a web based management system i am writing to provide an interface to deal with some hardware spam filters.
Basically the spam firewalls need an ldap server to query, to ensure that email coming in only goes to genuine users.
My web app keeps an sql db of users details, sorts out payments etc and keeps a list of their registered domains & emails, which i want to push into (and pull from) an ldap server for the firewall to use.
i have found a vmware vmdk of openldap server & all its requirements.
Will try to get that up and running next, just to see if it is AD's quirkyness causing the issues.
Basically the spam firewalls need an ldap server to query, to ensure that email coming in only goes to genuine users.
My web app keeps an sql db of users details, sorts out payments etc and keeps a list of their registered domains & emails, which i want to push into (and pull from) an ldap server for the firewall to use.
i have found a vmware vmdk of openldap server & all its requirements.
Will try to get that up and running next, just to see if it is AD's quirkyness causing the issues.
-
- Site Owner
- Posts: 9597
- Joined: May 16th, 2005, 15:31
- Location: Coventry, UK
- Contact: