} } else { displayErrMsg(”Connection to LDAP server

} } else { displayErrMsg(”Connection to LDAP server failed!”); exit; } } } ?> A typical screen prompting the user to enter the attributes would look like the one below: We need to be aware of certain caveats with this application that arise from the fact that this is merely illustrative of the PHP LDAP API and not a fully-fledged production application. As mentioned before the use of HTTP sessions is highly recommended to indicate authentication status. Further users created using the add mechanism do not have a password field and so modification of such entries is not possible through the current mechanism. To get started with the application we could upload a sample set of user information into the directory using the ldapadd utility that comes with most LDAP client software and then work with it. A typical sample would look like: dn: o=Foo Widgets, c=us objectclass: top objectclass: organization o: Foo Widgets dn: ou=Engineering, o=Foo Widgets, c=us objectclass: top objectclass: organizationalUnit ou: Engineering dn: ou=Marketing, o=Foo Widgets, c=us objectclass: top objectclass: organizationalUnit ou: Marketing dn: mail=faginm@foowi.com, ou=Engineering, o=Foo Widgets, c=us cn: Fagin sn: Maddog objectclass: top objectclass: person objectclass: organizationalPerson objectclass: inetOrgPerson mail: faginm@foowi.com ou: Engineering Page 523
Quick Hint: If you are looking for best quality webspace to host and run your tomcat application check Vision tomcat hosting services

Comments are closed.