[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: ldap_mod_add() (creating attributes)

>I'm in the process of writing a PHP web-based frontend
>for our OpenLDAP server.

Hey, me too.  What a coincidence...

>I realize that if I try to add an entry with an
>attribute (such as firstname) it returns with an error
>that that attribute doesn't exist.  

  $r=ldap_bind($ds, "cn=Manager, o=Morrison Industries, c=US", "secret");
  $dn = "cn=$cn,ou=Groups,o=Morrison Industries,c=US";
  $add_entries["memberuid"] = $uid;
  ldap_mod_add($ds, $dn, $add_entries);

Systems and Network Administrator
Morrison Industries
1825 Monroe Ave NW.
Grand Rapids, MI. 49505