public ConnectorAttribute GetAttributeByName(string name) { return CollectionUtil.GetValue(_attrs, name, null); }
/// <summary> /// Determine if the password is expired for this object. /// </summary> /// <param name="obj"> /// <see cref="ConnectorObject" /> that should contain a password expired /// attribute.</param> /// <returns> /// <code>null</code> if the attribute does not exist and the value /// of the <see cref="ConnectorAttribute" /> if it does.</returns> public static bool? IsPasswordExpired(ConnectorObject obj) { ConnectorAttribute pwd = obj.GetAttributeByName(OperationalAttributes.PASSWORD_EXPIRED_NAME); return (pwd == null) ? null : GetBooleanValue(pwd); }