note 112124 added to function.ldap-mod-del

From: Date: Tue, 07 May 2013 14:44:34 +0000
Subject: note 112124 added to function.ldap-mod-del
Groups: php.notes 
Request: Send a blank email to php-notes+get-194728@lists.php.net to get a copy of this message
We often need to delete "objectclass" below follows a simple code to make this successful removal. $userdataModifydelSamba = array(); $userdataModifydelSamba['objectClass'] = array(); $userdataModifydelSamba['objectClass'][0] = 'sambaSamAccount'; $userdataModifydelSamba['sambasid'] = array(); $userdataModifydelSamba['sambantpassword'] = array(); $userdataModifydelSamba['sambahomedrive'] = array(); $userdataModifydelSamba['sambadomainname'] = array(); $userdataModifydelSamba['sambaacctflags'] = array(); $userdataModifydelSamba['sambaprimarygroupsid'] = array(); $userdataModifydelSamba['sambapwdlastset'] = array(); $sucess = @ldap_mod_del($connection, $dn, $result); if(!$sucess) { throw new Exception("error " . ldap_err2str(ldap_errno($connection))); } ---- Server IP: 69.147.83.199 Probable Submitter: 201.33.231.213 ---- Manual Page -- http://php.net/manual/en/function.ldap-mod-del.php Edit -- https://master.php.net/note/edit/112124 Del: integrated -- https://master.php.net/note/delete/112124/integrated Del: useless -- https://master.php.net/note/delete/112124/useless Del: bad code -- https://master.php.net/note/delete/112124/bad+code Del: spam -- https://master.php.net/note/delete/112124/spam Del: non-english -- https://master.php.net/note/delete/112124/non-english Del: in docs -- https://master.php.net/note/delete/112124/in+docs Del: other reasons-- https://master.php.net/note/delete/112124 Reject -- https://master.php.net/note/reject/112124 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#194728) next »