<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Deactivating users on MS Active Directory using ABAP program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/deactivating-users-on-ms-active-directory-using-abap-program/m-p/1965694#M396640</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know if you solved this yet, but we are addressing the requirement by writing the AD attribute accountExpires. This sets the time/date beyond which the account cannot be used, so the user will be unable to log into Windows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The main trick here is to know that the value you need to write is "the number of 100-nanosecond intervals since Jan 1, 1601".  You can calculate this by calculating the number of days since Jan 1, 1601; multiply that number by 864 and then add nine zeroes to the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Darren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Nov 2007 12:03:28 GMT</pubDate>
    <dc:creator>darren_hague</dc:creator>
    <dc:date>2007-11-06T12:03:28Z</dc:date>
    <item>
      <title>Deactivating users on MS Active Directory using ABAP program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deactivating-users-on-ms-active-directory-using-abap-program/m-p/1965693#M396639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I&amp;#146;m working on SAP &amp;amp; MS Active directory integration project, where I wanted to deactivate the user accounts through SAP ABAP program for employees those are terminated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess there should be standard function modules doing this job. I have already checked following function modules but not satisfying my needs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- LDAP_UPDATE&lt;/P&gt;&lt;P&gt;- LDAP_MODIFY&lt;/P&gt;&lt;P&gt;- LDAP_DELETE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please update me if you have worked on similar requirements of deactivating the users on MS AD using SAP ABAP program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 12:24:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deactivating-users-on-ms-active-directory-using-abap-program/m-p/1965693#M396639</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-13T12:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Deactivating users on MS Active Directory using ABAP program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deactivating-users-on-ms-active-directory-using-abap-program/m-p/1965694#M396640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know if you solved this yet, but we are addressing the requirement by writing the AD attribute accountExpires. This sets the time/date beyond which the account cannot be used, so the user will be unable to log into Windows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The main trick here is to know that the value you need to write is "the number of 100-nanosecond intervals since Jan 1, 1601".  You can calculate this by calculating the number of days since Jan 1, 1601; multiply that number by 864 and then add nine zeroes to the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Darren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2007 12:03:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deactivating-users-on-ms-active-directory-using-abap-program/m-p/1965694#M396640</guid>
      <dc:creator>darren_hague</dc:creator>
      <dc:date>2007-11-06T12:03:28Z</dc:date>
    </item>
  </channel>
</rss>

