CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 1999
    Posts
    8

    Can you solve this????

    Hi,

    My Program Creating Group In Domain Controller. When I Terminated the Application I am removing the Account and Users from a Controller.

    Now the Problem in this case is When my Application is Executed from BDC ( named SLAVE1) it creates a account in my PDC( named MASTER). if the Same program Executed from a different BDC ( named SLAVE2). It tries to create the GROUP Again in PDC and it says Group Already exists. Ok Every think perfect.

    But If my Application delete the Group from first BDC named SLAVE1.It removes that GROUP entirely from PDC( MASTER ). But I need some kind of reference counting in this case. Is it possible to store that information anywhere as a group information. So that it has to remove the Group on the Termination of all applications tried to create the Group.

    from
    Sunil

    [email protected]



  2. #2
    Join Date
    Aug 1999
    Posts
    8

    Re: Can you solve this????

    This Problem can be solvable by Using LAS Private data with the Following functions

    LsaStorePrivateData()
    LsaRetrievePrivateData()

    Using the Private Data as Reference count inside the SAM Database of PDC. It will be automatically Replicated back. If you want replication Use I_Netlogin() API


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured