Wednesday, January 23, 2013

Enforcing Active Directory password history when resetting passwords using PHP

The code: $ctrl1 = array(    // LDAP_SERVER_POLICY_HINTS_OID for Windows 2012 and above    "oid" => "1.2.840.113556.1.4.2239",    "value" => sprintf("%c%c%c%c%c", 48, 3, 2, 1, 1));$ctrl2 = array(    // LDAP_SERVER_POLICY_HINTS_DEPRECATED_OID for Windows 2008 R2 SP1 and above    "oid" => "1.2.840.113556.1.4.2066",    "value" => sprintf("%c%c%c%c%c", 48, 3, 2, 1, 1));if (!ldap_set_option($ds, LDAP_OPT_SERVER_CONTROLS,...

Tuesday, January 22, 2013

RHEL 6 kickstart maps first hard drive to /dev/sdc

I was installing RHEL 6 on a Dell PowerEdge R610, and for some strange reason the first drive was mounted as /dev/sdc instead of /dev/sda. I saw someone else had the same issue on CentOS 6:https://www.centos.org/modules/newbb/viewtopic.php?topic_id=36632The solution: disable the iDRAC virtual media. I had to press Ctrl-E to get into the DRAC menu when it prompted me during the boot process, then I had to arrow down to Virtual Media Configuration and change the Virtual media setting from attached to detached.Or from the iDRAC web interface: System...

Wednesday, January 9, 2013

Dell DSET: Failed to gather Chassis/Storage data.

Trying to run Dell's DSET tool on Linux (RHEL), if it fails with the following error after entering the root password:Failed to gather Chassis/Storage data. Check the IP Address, credentials and namespace.Make sure you entered the root password correctly. Reset the root password if you're not 100% su...