IOPLEX
Communications Software
Plexcel for PHP - Active Directory PHP Integration
plexcel_new
plexcel_status
plexcel_find_authorities_by_domain
plexcel_get_authority
plexcel_get_domain
plexcel_log
plexcel_preamble
plexcel_authenticate
plexcel_sso
plexcel_logon
plexcel_logoff
plexcel_accept_token
plexcel_is_member_of
plexcel_set_password
plexcel_change_password
plexcel_gen_service_keytab
plexcel_search_objects
plexcel_get_account
plexcel_add_object
plexcel_modify_object
plexcel_delete_object
plexcel_rename_object
plexcel_set_attrdefs
plexcel_get_attrdefs
plexcel_set_conv_attrdefs

plexcel_set_conv_attrdefs

Printer Friendly Format

Synopsis

session_start();
require_once('plexcel.php');

bool plexcel_set_conv_attrdefs($px)

Description

The plexcel_set_conv_attrdefs function sets attribute definitions with standard conversions for many commonly used attributes.

Below is a partial list of the conversions performed.

Attribute Conversion
whenCreated PLEXCEL_CONV_TIME1970M_X_TIMEUTC
whenChanged PLEXCEL_CONV_TIME1970M_X_TIMEUTC
objectSid PLEXCEL_CONV_SIDSTR_X_BINARY
objectGUID PLEXCEL_CONV_BASE64_X_BINARY
badPasswordTime PLEXCEL_CONV_TIME1970M_X_TIME1601
lastLogoff PLEXCEL_CONV_TIME1970M_X_TIME1601
lastLogon PLEXCEL_CONV_TIME1970M_X_TIME1601
pwdLastSet PLEXCEL_CONV_TIME1970M_X_TIME1601
accountExpires PLEXCEL_CONV_TIME1970M_X_TIME1601 Note: This value is usually set to (double)0x7fffffffffffffff . Plexcel has a constant for this value: PLEXCEL_EXPIRES_NEVER .
userParameters PLEXCEL_CONV_BASE64_X_BINARY

Returns

The plexcel_set_conv_attrdefs function returns TRUE if the the attribute definitions were successfully set. Otherwise, FALSE is returned in which case plexcel_status should be consulted.

Example

plexcel_set_attrdefs | plexcel_get_attrdefs

© 2008 IOPLEX Software | Contact Us | Policies