. * */ require_once('apps/user_ldap/user_ldap.php'); OC_APP::registerAdmin('user_ldap','settings'); // define LDAP_DEFAULT_PORT define('OC_USER_BACKEND_LDAP_DEFAULT_PORT', 389); // define OC_USER_BACKEND_LDAP_DEFAULT_DISPLAY_NAME define('OC_USER_BACKEND_LDAP_DEFAULT_DISPLAY_NAME', 'uid'); // register user backend OC_User::useBackend( "LDAP" ); // add settings page to navigation $entry = array( 'id' => "user_ldap_settings", 'order'=>1, 'href' => OC_Helper::linkTo( "user_ldap", "settings.php" ), 'name' => 'LDAP' ); // OC_App::addNavigationSubEntry( "core_users", $entry);