diff --git a/INSTALL b/INSTALL index fea99f9..d3a5fcb 100644 --- a/INSTALL +++ b/INSTALL @@ -1,40 +1,49 @@ These instructions assume that you have a working install of: - a. A web server (Apache, IIS, etc). - b. PHP (with LDAP support) + a. A web server (Apache, IIS, etc). + b. PHP (with LDAP support) -Installing phpLDAPAdmin in 4 easy steps: +* Installing phpLDAPadmin in 4 easy steps: -1. Untar the archive (if you're reading this, you've already done that). -2. Put the resulting phpldapadmin directory somewhere in your webroot. -3. Copy 'config.php.example' to 'config.php' and edit to taste. -4. Then, point your browser to the phpldapadmin directory. + 1. Untar the archive (if you're reading this, you already did that). + 2. Put the resulting 'phpldapadmin' directory somewhere in your webroot. + 3. Copy 'config.php.example' to 'config.php' and edit to taste. + 4. Then, point your browser to the phpldapadmin directory. -Browsers +* Browser Notes -phpLDAPAdmin was developed on Mozilla, and will most likely run best thereon. -However, testing has been done on Internet Explorer, and it should work -well also. No testing has been done on either Konqueror (or any khtml-based -browser like Safari) or Opera. If you find a browser incompatibility, -please report it. + phpLDAPadmin was developed on Mozilla, and will most likely run best thereon. + However, testing has been done on Internet Explorer, and it should work + well also. No testing has been done on either Konqueror (or any khtml-based + browser like Safari) or Opera. If you find a browser incompatibility, + please report it. -Contributors (thank you!) +* Contributors (thank you!) + + Project Developers: + + - David Smith Maintainer + - Xavier Renard LDIF master + - Nate Rotschafer Release manager Patch writers: - - Mario Valdez jpegPhoto support, localization (not yet in 0.8.x), html fixes - - Bayu Irawan userPassword encryption support, html fixes, ldap_modify fixes - - Uwe Ebel short_open_tags fix-it script - - Philippe Broussard form auth_type bug report - - Andrew Tipton SUP support in schema-fetching - - Eigil Bjørgum UTF-8 support - - Brandon Lederer DNS entry template + - Bayu Irawan userPassword hash, html fixes, ldap_modify fixes + - Uwe Ebel short_open_tags fix + - Andrew Tipton SUP support in schema parser + - Eigil Bjørgum UTF-8 support + - Brandon Lederer DNS entry template Nathan Rotschafer - - Steve Rigler Password hash patch - - Chric Jackson Blowfish and md5crypt passwords + - Steve Rigler Password hash patch + - Chric Jackson Blowfish and md5crypt passwords + - Marius Rieder Enhanced schema parser + - Nick Burch Many realpath() fixes - Bug reporters: + Translators: - - Colin Tinker (short_open_tags bug report) - - Greg Felix (multi-value update bug report) - - Moritz Mertinkat (creation bug report) + - Uwe Ebel German + - Xavier Renard French + - Dave Smith English ;) + + If you can help translate, please join the phpldapadmin-devel mailing list: + https://lists.sourceforge.net/mailman/listinfo/phpldapadmin-devel diff --git a/VERSION b/VERSION index ac39a10..f374f66 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.9.0 +0.9.1 diff --git a/add_oclass.php b/add_oclass.php index 3c5986e..13e4e65 100644 --- a/add_oclass.php +++ b/add_oclass.php @@ -14,17 +14,19 @@ * - new_attrs (array, if any) */ -require 'config.php'; -require 'functions.php'; +require 'common.php'; -$dn = stripslashes( rawurldecode( $_POST['dn'] ) ); +$dn = rawurldecode( $_POST['dn'] ); $encoded_dn = rawurlencode( $dn ); -$new_oclass = stripslashes( $_POST['new_oclass'] ); +$new_oclass = $_POST['new_oclass']; $server_id = $_POST['server_id']; $new_attrs = $_POST['new_attrs']; -check_server_id( $server_id ) or pla_error( "Bad server_id: " . htmlspecialchars( $server_id ) ); -have_auth_info( $server_id ) or pla_error( "Not enough information to login to server. Please check your configuration." ); +if( is_server_read_only( $server_id ) ) + pla_error( $lang['no_updates_in_read_only_mode'] ); + +check_server_id( $server_id ) or pla_error( $lang['bad_server_id'] ); +have_auth_info( $server_id ) or pla_error( $lang['not_enough_login_info'] ); $new_entry = array(); $new_entry['objectClass'] = $new_oclass; @@ -40,12 +42,12 @@ if( is_array( $new_attrs ) && count( $new_attrs ) > 0 ) //print_r( $new_entry ); //exit; -$ds = pla_ldap_connect( $server_id ) or pla_error( "Could not connect to LDAP server." ); +$ds = pla_ldap_connect( $server_id ) or pla_error( $lang['could_not_connect'] ); $add_res = @ldap_mod_add( $ds, $dn, $new_entry ); if( ! $add_res ) { - pla_error( "Could not perform ldap_mod_add operation", ldap_error( $ds ), ldap_errno( $ds ) ); + pla_error( $lang['could_not_perform_ldap_mod_add'], ldap_error( $ds ), ldap_errno( $ds ) ); } else { diff --git a/add_oclass_form.php b/add_oclass_form.php index 36c0e9f..80ef6fb 100644 --- a/add_oclass_form.php +++ b/add_oclass_form.php @@ -15,16 +15,18 @@ * - new_oclass */ -require 'config.php'; -require_once 'functions.php'; +require 'common.php'; -$dn = stripslashes( rawurldecode( $_POST['dn'] ) ); +$dn = rawurldecode( $_POST['dn'] ); $encoded_dn = rawurlencode( $dn ); -$new_oclass = stripslashes( $_POST['new_oclass'] ); +$new_oclass = $_POST['new_oclass']; $server_id = $_POST['server_id']; -check_server_id( $server_id ) or pla_error( "Bad server_id: " . htmlspecialchars( $server_id ) ); -have_auth_info( $server_id ) or pla_error( "Not enough information to login to server. Please check your configuration." ); +if( is_server_read_only( $server_id ) ) + pla_error( $lang['no_updates_in_read_only_mode'] ); + +check_server_id( $server_id ) or pla_error( $lang['bad_server_id'] ); +have_auth_info( $server_id ) or pla_error( $lang['not_enough_login_info'] ); /* Ensure that the object has defined all MUST attrs for this objectClass. * If it hasn't, present a form to have the user enter values for all the @@ -47,19 +49,19 @@ foreach( $must_attrs as $attr ) if( count( $needed_attrs ) > 0 ) { - ?> - - - + include 'header.php'; ?>
-New Required Attributes | |
---|---|
- Note: You will get an "inappropriate matching" error if you have not
- setup an EQUALITY rule on your LDAP server for jpegPhoto attributes.
+
+
+
@@ -84,7 +108,8 @@ Current list of value -Enter the value you would like to add: