Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 07-07-2003, 03:14 PM   #1 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,446
sde is on a distinguished road
ldap server software

i need to learn how to connect and query an ldap db from php on windows. does anyone know free, or even trial software for an ldap db?
__________________
Mike
sde is offline   Reply With Quote
Old 07-08-2003, 08:01 PM   #2 (permalink)
technobard
Centurion Nova Prime
 
technobard's Avatar
 
Join Date: May 2002
Location: Oak Park, IL (USA)
Posts: 285
technobard is on a distinguished road
Check out www.openldap.org. I've never used it, but I came across a while ago while searching for something else.
technobard is offline   Reply With Quote
Old 08-03-2003, 05:32 PM   #3 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,140
Belisarius is on a distinguished road
You're in luck, I've been working with LDAP for the past two years at my college. We've been using Java instead of PHP, but I understand how LDAP works pretty well.

You have two options. First, as was mentioned, was OpenLDAP. The problem is that it only works in Unix enviroments. That means trying to get it to work via Cygwin (www.cygwin.com). Cygwin is a very nice Unix emulation program for windows. While it isn't as good as the real thing (and I strongly suggest getting a Linux box for this), it's a good workaround.

Or, if you want something a little easier to handle, Sun has their own LDAP server(http://wwws.sun.com/software/product...directory.html). That's the one we use at the college, and have been using it ever since it was Netscape's LDAP server many moons ago. It has a nice UI to it. It's only trial software though (we at the college have the liscenced version), and it claims to require Windows Advanced Server SP2. But try it and see if it works on whatever you're using.
__________________
GitS
Belisarius is offline   Reply With Quote
Old 08-03-2003, 05:40 PM   #4 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,446
sde is on a distinguished road
i forgot about this post ..

I ended up setting up a w2k3 domain and php successfully was communicating with the active directory.

powerful stuff when used with IIS properly. if you disengage the anonymous user in IIS, php var $_SERVER['LOGON_USER'] detects the domain\username of who is logged on.

use this with the active directory, and you can create php apps fully integrated into the windows user/group security =)
__________________
Mike
sde is offline   Reply With Quote
Old 08-03-2003, 06:07 PM   #5 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,140
Belisarius is on a distinguished road
I suppose that's great if you have a Windows-only client-base.
__________________
GitS
Belisarius is offline   Reply With Quote
Old 08-03-2003, 07:34 PM   #6 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,446
sde is on a distinguished road
it works with internet explorer on mac too

yes, .. i understand the limitations, but all the systems for this application are always on an internal corporate windows network.
__________________
Mike
sde is offline   Reply With Quote
Reply

Bookmarks

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fix security at source with latest inspection software redhead Code Newbie News 0 04-05-2004 04:23 AM
When good software goes bad CaN Opener Code Newbie News 2 08-14-2003 03:16 AM
Windows server 2003? CaN Opener Lounge 3 03-24-2003 05:22 AM


All times are GMT -8. The time now is 05:29 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting