Re: ldap_modify parameters?

From: Date: Fri, 02 Aug 2002 20:03:16 +0000
Subject: Re: ldap_modify parameters?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-110873@lists.php.net to get a copy of this message
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

« previous php.general (#110873) next »