boolean mkdir(string attribute, string value [, string dn])
mkdir() creates a DN/directory under the current working directory or under the DN passed as the third parameter. You must specify an attribute and value for the directory (DN) you want to create. This is currently the _ONLY_ way to add an entry into the LDAP database. See the Concepts page for a more in depth explanation.


$ldap = new LDAP();
$ldap->cd("ou=people, dc=ypass, dc=net");
$ldap->mkdir("cn", "Eric");
/* Now i have a directory with the path:
     cn=Eric, ou=people, dc=ypass, dc=net
  Remember that the words directory, entry, and DN are used interchangably
  when dealing with this class.