Exemple #1
0
 public static void ToExtendedAccountExpirationDate(string extendedAttribute, string[] directoryAttributes, ADEntity userObj, ADEntity directoryObj, CmdletSessionInfo cmdletSessionInfo)
 {
     if (directoryObj[directoryAttributes[0]].Value != null)
     {
         long value = (long)directoryObj[directoryAttributes[0]].Value;
         if (value == (long)0 || value == 0x7fffffffffffffffL)
         {
             userObj.Add(extendedAttribute, new ADPropertyValueCollection(null));
             return;
         }
         else
         {
             AttributeConverters.ToExtendedDateTimeFromLong(extendedAttribute, directoryAttributes, userObj, directoryObj, cmdletSessionInfo);
             return;
         }
     }
     else
     {
         userObj.Add(extendedAttribute, new ADPropertyValueCollection(null));
         return;
     }
 }