This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

SafeGuard 7.00.0.97 - sync new OUs from AD into Console

Dear Community

In an already exist safeguard implementation with ADsync, whitch works fine, I have to sync new generated OU Strukture from AD into the Enterprise Console, where new User and Workstation Objects are into.

I have tried to follow the instructions from the Sample API Script AddObjectToSGN.vbs, but that script did not work correctly - unfortunately without any error message, so I tried to switch to Powershell.

After loading the DotNet Assembly  with

[System.Reflection.Assembly]::LoadWithPartialName("Utimaco.SafeGuard.AdministrationConsole.Scripting")

I want to create the required object with

new-object Utimaco.SafeGuard.AdministrationConsole.Scripting.Base

but there come an error message with 

new-object : Exception calling ".ctor" with "0" argument(s): "Could not load file or assembly 'SGM_CBIWrapper, Version=7.0.0.97, Culture=neutral, PublicKeyToken=477ad77cf9ac4e6c'
or one of its dependencies. The system cannot find the file specified."

looks like an missing dependencies, but which one ??

System Informations:

The System is installed on a fresh setuped 2012R2 Standard with whole updates installed.

DotNet Version = 4.0.30319

Utimaco.SafeGuard.AdministrationConsole.Scripting.dll Version = 7.00.0.97

SGM_CBIWrapper.dll Version  = 7.00.0.97

System is patched with SGN700MC_ADSyncUserStatePatch.msp

thanks for any help!

kind regards 

Matthias Seuchter



This thread was automatically locked due to age.
Parents
  • Hi,

    Can you please clarify what you are trying to do?

    It sounds like you are simply trying to add another domain to your existing Safeguard server installation, if I am understanding you correctly, you don't need to be running a script to import the new domain, just follow the steps below:

    2. In the SafeGuard Management Center, select Tools > Options.
    2. Select the Directory tab and click Add.
    3. In LDAP Authentication, do the following:
    a) For Server name or IP, enter the NetBIOS name of the domain controller or its IP address.
    b) For User Credentials, enter your Windows user name and password for the environment.
    c) Click OK.
    Note: For Windows single computers, a directory must be shared to enable a connection
    through LDAP.
    4. Click Users and Computers.
    5. In the left-hand navigation window, click the root directory Root [filter is active].
    6. In the action area on the right, select the Synchronize tab.
    7. Select the required directory from the Directory DSN list and click the magnifier icon (top
    right).
    A graphical representation of the Active Directory structure of the organizational units (OU) in
    your company is displayed.

    Paul D
  • Hi Paul

    No, thats not the think I have to do - I have to Sync complete new OUs from really same AD into console, because of restructuring from it.


    So I followed the documentation , but by this error , the OUs are not synced

    Thanks,
    Matthias
  • FormerMember
    0 FormerMember in reply to MatthiasSeuchter
    Hi Matthias,

    As Joe mentioned the script just syncs what has been selected in the SafeGuard Management Centre - the reason for this is so as not to import things automatically that you don't want in there, especially if you only manage a small portion of your network with SafeGuard.

    Once you've imported the new OU and synced it the script will sync it from there onwards.
  • Dear Toby

    I have already done so, and that work as aspected, also the Scheduled Task, which sync the exist ad structure. (=ActiveDirectorySynchronization.vbs) All work fine!

    But if I try to use the script Synchronize.vbs, the script runs in an error as i have already told.
    So it looks like, that I have troubles to load the required library....

    regards
    Matthias
  • FormerMember
    0 FormerMember in reply to MatthiasSeuchter
    Hello Matthias,

    I'm sorry, I don't think we understand your issue. You can sync manually via the Management Centre, and you can sync via a scheduled task, so what is it you're looking to achieve with this script?
  • You're tying to create a .Net solution to synchronize your AD. I believe this is beyond what you will get resolved on this forum. If you want help with this type of solution, I would suggest talking to the Sophos Professional Services department.
  • Hi Matthias

     

    Did you ever get a fix for this? I am trying to do the same, but Sophos have been very unhelpful as usual and just said it isnt supported, or they have not tested it. So currently the only way to make sure safeguard mirrors our AD structure, is to do a manual sync each time we create/delete an OU...let me know if you were able to get a script working..i found a knowledge base article saying a API Sample script may help (which i think you mentioned) but not knowing a lot of vb script im not confident running this in our live setup.

     

    Thanks

    Damien

  • Hi Damien,

    I think you can use the available API scripts to achieve what you want.

    We provide some template scripts, which you can easily addopt for your domain infrastructur.

    Please have a look at the following part of the product manual:

    https://docs.sophos.com/esg/sgn/8-0/admin/win/en-us/webhelp/index.htm#concepts/TaskSchedulerScriptTemplatesSynch.htm

    To get some additional information for how to use the taskscheduler function - please check the following part too:

    https://docs.sophos.com/esg/sgn/8-0/admin/win/en-us/webhelp/index.htm#concepts/TaskSchedulerScriptTemplates.htm

    https://docs.sophos.com/esg/sgn/8-0/admin/win/en-us/webhelp/index.htm#tasks/TaskSchedulerImportScript.htm 

     

    BR

Reply Children
No Data