lists

# 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 Mon, 28 Apr 2008 20:17:58 +0200 by phpDocumentor 1.4.0