none
Correct formatting to point to sub-OU? RRS feed

  • Question

  • Pardon the amateur question! I am trying to configure a copier to pull email addresses from Active Diretory. I would like to limit results to a specific OU in the hierarchy(mydomain.local > MyBusiness > Users > SBSUsers). If I configure the setting as ou=MyBusiness,dc=mydomain,dc=local, it works fine. However, when I set it as ou=SBSUsers,dc=mydomain,dc=local, it does not work. Is there a different way to format this when the OU lives a few levels deep in the hierarchy?

    Thanks!

    Thursday, September 27, 2012 6:34 PM

Answers

  • Because that is the not the correct DN. It should be

    OU=SBSUsers,OU=Users,OU=MyBusiness,DC=mydomain,DC=Local

    You can get the DN from the OU properties


    Santhosh Sivarajan | Houston, TX
    http://www.sivarajan.com/

    FaceBook Twitter LinkedIn SS Tech Forum

    This posting is provided AS IS with no warranties,and confers no rights.


    Thursday, September 27, 2012 6:45 PM
    Moderator
  • It seems the path you have mentioned here is incomplete / Wrong.

    When the command will get execute, it will be successful till " dc=mydomain,dc=local ", as soon as it reach to "ou=SBSUsers" in your syntax, will be stuck with error. because, there is no direct SBSUsers OU under Mydomain.local.

    Below steps can help you to find out the correct DN.

    Open ADSIEdit.msc -> Go to your server path in Domain Partition -> Go to Properties of server -> Find an attribute Distinguished Name (DN) -> Double Click to openit -> Copy and click cancel in all windows.

    OR//

    Try this command to find the LDAP path for OU.
    Dsquery OU –name "OU Name"

    Hope this will help you, please confirm.

    Thanks,

    Amit Katkar

    This posting is provided "AS IS" with no warranties or guarantees and confers no rights.


    Mr.ASK

    • Marked as answer by EdwardLee Friday, September 28, 2012 4:05 PM
    Thursday, September 27, 2012 7:28 PM
  • You need to specify the correct DN path of OU where users are placed.If the users are placed in mydomain.local > MyBusiness > Users > SBSUsers
    then the DN path should be OU=SBSUsers,OU= Users,OU= MyBusiness,DC= mydomain,DC=Local.You can find the dn path of users or OU by dsquery command see below link to check the same.

    Find distinguished name (LDAP path for the object)
    http://www.windowstricks.in/2009/06/find-distinguished-name-ldap-bath-for.html

    Hope this helps


    Best Regards,

    Sandesh Dubey.

    MCSE|MCSA:Messaging|MCTS|MCITP:Enterprise Adminitrator | My Blog

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

    • Marked as answer by EdwardLee Friday, September 28, 2012 4:05 PM
    Friday, September 28, 2012 4:13 AM

All replies

  • Because that is the not the correct DN. It should be

    OU=SBSUsers,OU=Users,OU=MyBusiness,DC=mydomain,DC=Local

    You can get the DN from the OU properties


    Santhosh Sivarajan | Houston, TX
    http://www.sivarajan.com/

    FaceBook Twitter LinkedIn SS Tech Forum

    This posting is provided AS IS with no warranties,and confers no rights.


    Thursday, September 27, 2012 6:45 PM
    Moderator
  • It seems the path you have mentioned here is incomplete / Wrong.

    When the command will get execute, it will be successful till " dc=mydomain,dc=local ", as soon as it reach to "ou=SBSUsers" in your syntax, will be stuck with error. because, there is no direct SBSUsers OU under Mydomain.local.

    Below steps can help you to find out the correct DN.

    Open ADSIEdit.msc -> Go to your server path in Domain Partition -> Go to Properties of server -> Find an attribute Distinguished Name (DN) -> Double Click to openit -> Copy and click cancel in all windows.

    OR//

    Try this command to find the LDAP path for OU.
    Dsquery OU –name "OU Name"

    Hope this will help you, please confirm.

    Thanks,

    Amit Katkar

    This posting is provided "AS IS" with no warranties or guarantees and confers no rights.


    Mr.ASK

    • Marked as answer by EdwardLee Friday, September 28, 2012 4:05 PM
    Thursday, September 27, 2012 7:28 PM
  • You need to specify the correct DN path of OU where users are placed.If the users are placed in mydomain.local > MyBusiness > Users > SBSUsers
    then the DN path should be OU=SBSUsers,OU= Users,OU= MyBusiness,DC= mydomain,DC=Local.You can find the dn path of users or OU by dsquery command see below link to check the same.

    Find distinguished name (LDAP path for the object)
    http://www.windowstricks.in/2009/06/find-distinguished-name-ldap-bath-for.html

    Hope this helps


    Best Regards,

    Sandesh Dubey.

    MCSE|MCSA:Messaging|MCTS|MCITP:Enterprise Adminitrator | My Blog

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

    • Marked as answer by EdwardLee Friday, September 28, 2012 4:05 PM
    Friday, September 28, 2012 4:13 AM