summaryrefslogtreecommitdiff
path: root/www/admin/addressbook
diff options
context:
space:
mode:
authorSteffen Hansen <steffen@kdab.com>2004-08-16 12:51:25 (GMT)
committerSteffen Hansen <steffen@kdab.com>2004-08-16 12:51:25 (GMT)
commitcdb1d28ff6726ed0ec6ebbd6f1f58cf6902f2d63 (patch)
tree775a0ade057fe3ece2f425dccdfbf9e3da5cf7d9 /www/admin/addressbook
parent9583ca90a01beb70ba1936d25a6604dbee676a6b (diff)
downloadkolab-webadmin-cdb1d28ff6726ed0ec6ebbd6f1f58cf6902f2d63.tar.gz
addressbook objectClass fix (Martin: Please review)
Diffstat (limited to 'www/admin/addressbook')
-rw-r--r--www/admin/addressbook/addr.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/www/admin/addressbook/addr.php b/www/admin/addressbook/addr.php
index 884dd73..0d7a2df 100644
--- a/www/admin/addressbook/addr.php
+++ b/www/admin/addressbook/addr.php
@@ -125,7 +125,7 @@ if( !$errors ) {
$content = $form->outputForm();
} else {
$addressbook_root = "cn=external,".$_SESSION['base_dn'];
- $ldap_object = array('objectClass' => 'inetOrgPerson');
+ $ldap_object = array('objectClass' => array( 'top', 'inetOrgPerson', 'kolabInetOrgPerson' ) );
$firstname = trim($_POST['firstname']);
$lastname = trim($_POST['lastname']);
$ldap_object['sn'] = trim($lastname);
@@ -222,7 +222,7 @@ if( !$errors ) {
if( $result ) {
$ldap_object = ldap_get_entries( $ldap->connection, $result );
if( $ldap_object['count'] == 1 ) {
- fill_form_for_modify( &$form, $ldap_object[0] );
+ fill_form_for_modify( $form, $ldap_object[0] );
$form->entries['action']['value'] = 'kill';
foreach( $form->entries as $key ) {
$form->entries[$key]['attrs'] = 'readonly';