Share

PHP LDAP class for Active Directory

Code

Programming Languages: PHP

License: GNU Library or Lesser General Public License (LGPL)

Repositories

browse code, statistics, last commit on 2009-08-25 svn co https://adldap.svn.sourceforge.net/svnroot/adldap adldap

browse code, statistics cvs -d:pserver:anonymous@adldap.cvs.sourceforge.net:/cvsroot/adldap login

cvs -z3 -d:pserver:anonymous@adldap.cvs.sourceforge.net:/cvsroot/adldap co -P modulename

Show:

What's happening?

  • Followup: RE: Unsetting/removing any attribute

    just found the following comment: // LDAP doesn't like NULL attributes, only set them if they have values // If you wish to remove an attribute you should set it to a space // TO DO: Adapt user_modify to use ldap_mod_delete to remove a NULL attribute It's a pity that it isn't implemented yet...

    2009-11-11 08:16:52 UTC by jancho

  • Followup: RE: Unsetting/removing any attribute

    I have the same problem... In C / C# there is a way to clear AD attributes, but I'm not sure how to make this with adLdap has anyone an idea? Thanks in advance Jan.

    2009-11-11 07:52:22 UTC by jancho

  • Pb in function exchange_contact_mailenable ?

    When I use the function $result=$adldap->exchange_contact_mailenable('CN=DAMIAN-YANN,OU=contacts,DC=domain,DC=local','test@test.com','DAMIAN'); this return "Missing compulsory field [emailaddress]" so in the function public function exchange_contact_mailenable($distinguishedname, $emailaddress, $mailnickname=NULL){ if ($distinguishedname===NULL){ return ("Missing compulsory field...

    2009-11-10 09:19:15 UTC by lucyfire

  • Followup: RE: Function recursive_groups loop

    Warning, the last } was left out of the code zone.

    2009-11-03 17:27:45 UTC by ldardini

  • Followup: RE: Function recursive_groups loop

    Hello, I have rewritten the recursive_groups function to be iterative instead of recursive and get rid of the nested looped group problem. I am not the master of PHP, so please review it accurately public function recursive_groups($group) { if ($group===NULL){ return (false); } $ret_groups=array(); $groups_tocheck=array(); $groups_tocheck[]=$group; while...

    2009-11-03 17:20:45 UTC by ldardini

  • Function recursive_groups loop

    Hello, I think there is a problem in recursive_groups function when LDAP has a recursive nesteed loop. In this case, the recursive_groups function loops and never end trashing the web server memory until a segmentation fault arise. Leandro.

    2009-11-03 16:12:10 UTC by ldardini

  • PHP style user_info result array

    The array returned by the user_info method is not esay to read and use. All the "count" members are not needed because PHP has count functions builtin. I have created a recursive function to reduce the returned array to an easier, less complex one still containing all info. You can include the function in the attached file easily as a protected method in the adLDAP class. And add a line to the...

    2009-11-03 12:36:54 UTC by themars

  • Set account expire date

    I am trying to create a new user with user_create, but I am unable to set a correct expire date. In the documentation it states that you are supposed to use unixtime. This must be wrong? Adldap/AD accepts my input, but the expiration date is totaly wrong. Maybe you have to use that insane nanosecond date thingy from MS? Has anyone sucessfully set corrext expire date?.

    2009-10-30 11:42:57 UTC by ravgun

  • find a bug in 1400 line

    switch ($type) { case 'contact': $filter .= '(objectClass=contact)'; break; case 'contact': //maybe here probably should be 'computer' ? $filter .= '(objectClass=computer)'; break; ... }.

    2009-10-30 09:10:31 UTC by nobody

  • Local Users And Groups Functionality

    This class has been very helpful to me. I needed the same functionality for local users and groups on windows, so I cloned this and added local user and group functionality for the same methods. I wrapped the command line NET USER, NET LOCALGROUP, etc commands in a php class. Is there a better way to do this or a similar project already in existance for local users? Is there a way to get...

    2009-10-28 03:55:36 UTC by jbarclay

Our Numbers