List Info

Thread: LDAP Authentication




LDAP Authentication
user name
2006-06-13 20:00:56

I am trying to setup LDAP auth to my win2k exchange sever and I am not too sure what bind function is for,

 

 

    // Hostname of your LDAP server

    $auth_ldap_server = "dc1";

 

    // Password to query the LDAP server (this is NOT the same

    // as the password of the user being authenticated!).

    $auth_ldap_password = "password";

 

    // Authentication query for users domain.tld

    // Leave the "%%USER%%" placeholder in the query--this will be replaced

    // by the username when the query is executed.

    $auth_ldap_query = "(|(mailLocalAddress=%%USER%%)(mailLocalAddress=%%USER%%domain.tld))";

 

    // Company name, domain name, and top-level domain

    // e.g. "cn=acme, dc=example, dc=com"

    $auth_ldap_bind_dn = "CN=Administrator,CN=Users,DC=domain,DC=stamant,DC=mb,DC=ca";

 

    // Domain and top-level domain, e.g. example.com => "dc=example, dc=com"

    $auth_ldap_base_dn = "DC=domain,DC=stamant,DC=mb,DC=ca";;

 

    // Attribute string that describes the name of the LDAP field that will

    // return the user's e-mail address.

    $auth_ldap_attribute = "mail";

 

    // Set your ldap version (default is 2)

    $auth_ldap_version = 2;

 

The staff that I want to authenticate is in a container called staff. (CN=staff,DC=domain,DC=stamant,DC=mb,DC=ca)

 

Also what is the purpose of $auth_ldap_password, I have done an ldap connection before but I needed to provide a user / password to connect to the ldap server, I assume that’;s what it’s for but there is no username to go with it?

 

Thanks for the help.

 

Dan

 

LDAP Authentication
user name
2006-06-13 20:35:05
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dan OConnor wrote:

> Also what is the purpose of $auth_ldap_password, I have
done an ldap
> connection before but I needed to provide a user /
password to connect
> to the ldap server, I assume that?s what it?s for but
there is no
> username to go with it?

it goes with $auth_ldap_bind_dn

Some other on the list have connected Maia to AD before, so
hopefully they can
shed more light on the issue.


- --
David Morton
Maia Mailguard                        - http://www.maiamailguard
.com
Morton Software Design and Consulting - http://www.dgrmm.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org


iD8DBQFEjyF5Uy30ODPkzl0RAljUAKDBUUuJtSWPsdxssxu5uOmZQlDdPACd
Huzp
OS5SJU2BfsmeOtuR2PgmnCk=
=Zm9X
-----END PGP SIGNATURE-----
_______________________________________________
Maia-users mailing list
Maia-usersrenaissoft.com
http://www.renaissoft.com/mailman/listinfo/maia-users
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )