On Thu, Aug 01, 2002 at 09:52:12AM -0400, Chad Day wrote: > Also tried that, no success, unless I am missing something. > > ... > $info["st"]="stchanged!"; > ... > > ldap_modify($ds, 'uid=testing,cn=online-leagues.com', $info); > > Fatal error: LDAP: Unknown Attribute in the data in > /usr/local/www/sites/online-leagues.com/htdocs/ldapform.php on line 31
The problem is that $info contains not just the LDAP data, but also a list of attributes, like say $info[2] == "st". I wish that were never put in there, but we have to live with it now. You either have to create a new array with exactly you want in the entry (or I guess remove these extra values, use var_dump($info) and you should see what I'm talking of), or instead use ldap_mod_replace() using say $mods["st"] = "stchamged"; ldap_mod_replace($ds, 'uid=testing,cn=online-leagues.com', $mods); Stig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php