lists
[ class tree: lists ] [ index: lists ] [ all elements ]

Procedural File: update.php

Source Location: /templates/tree/update.php



Page Details:

Updates or deletes a value from a specified attribute for a specified dn.

Variables that come in on the query string:

  • dn (rawurlencoded)
  • update_array (an array in the form expected by PHP's ldap_modify, except for deletions) (will never be empty: update_confirm.php ensures that)
Attribute deletions: To specify that an attribute is to be deleted (whether multi- or single-valued), enter that attribute in the update array like this: attr => ''. For example, to delete the 'sn' attribute from an entry, the update array would look like this: Array ( sn => '' )

On success, redirect to edit.php On failure, echo an error.




Tags:

author:  David Smith
author:  Roland Gruber


Includes:

include_once('../../lib/security.inc') [line 57]
security functions

include_once('../../lib/tree.inc') [line 59]
tree functions

include_once('../../lib/config.inc') [line 61]
access to configuration

include_once('../../lib/ldap.inc') [line 63]
LDAP functions







Documentation generated on Sun, 04 Nov 2007 12:11:15 +0100 by phpDocumentor 1.4.0