跳到主要內容

發表文章

目前顯示的是 3月, 2024的文章

php 中使用 ldap_mod_replace 更新 LDAP 資料

 今天試著透過 ldap_mod_replace 更新 LDAP 中的資料 <?php         $info [ 'mail' ] = ( empty ( $email )) ? array ( "" ) : array ( $email );         $info [ 'telephonenumber' ] = ( empty ( $line_token )) ? array () : array ( $line_token );         if ( ldap_mod_replace ( $ldap_conn , $rdn , $info )) ?> 發現 mail  欄位跟 telephonenumber 欄位對於空白資料給法不一樣,如上