gunnar: server/kolab-webadmin/kolab-webadmin/lib/KolabAdmin Ldap.php, 1.1, 1.2
cvs at kolab.org
cvs at kolab.org
Sun Feb 21 10:00:51 CET 2010
Author: gunnar
Update of /kolabrepository/server/kolab-webadmin/kolab-webadmin/lib/KolabAdmin
In directory doto:/tmp/cvs-serv3910/kolab-webadmin/lib/KolabAdmin
Modified Files:
Ldap.php
Log Message:
Provide an add method to the Ldap class and add unit testing for it.
The web admin uses ldap_add() directly in the views at the moment. This should later be refactored to use the add() method in the library.
Index: Ldap.php
===================================================================
RCS file: /kolabrepository/server/kolab-webadmin/kolab-webadmin/lib/KolabAdmin/Ldap.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- Ldap.php 17 Feb 2010 08:11:29 -0000 1.1
+++ Ldap.php 21 Feb 2010 09:00:49 -0000 1.2
@@ -176,6 +176,10 @@
return $ldap_object;
}
+ function add( $dn, $attr ) {
+ return ldap_add($this->connection, $dn, $attr);
+ }
+
function search( $base, $filter, $attrs = false ) {
$this->freeSearchResult();
if( $attrs ) {
More information about the commits
mailing list