Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi all! We have been experiencing an issue on site where threads have been missing the latest postings. The platform host Vanilla are working on this issue. A workaround that has been used by some is to navigate back from 1 to 10+ pages to re-sync the thread and this will then show the latest posts. Thanks, Mike.
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Active Directory Tool

  • 06-08-2008 6:27am
    #1
    Closed Accounts Posts: 1,567 ✭✭✭


    has anyone got a tool or know of a tool that runs on the command line allowing you to supply a formal name, and have it return a user id from the active directory??

    something like: lookup JOHNSON
    and it returns the user ids from multiple domains:

    USER ID for X DOMAIN: john1
    USER ID for Y DOMAIN: john12

    ..etc
    i would write a vbscript, but its slow as hell..hoping there is something already available that someone here has used before.


Comments

  • Closed Accounts Posts: 1,567 ✭✭✭Martyr


    i found some tools in administrators pack: DSQUERY + DSGET

    First as example, find on current domain my id, joebloggs
         dsquery user -name joebloggs
       
       "CN=joebloggs,CN=Users,DC=ms,DC=ds,DC=DOMAIN,DC=com"
    

    Now search SOME.DOMAIN.COM using -d parameter
         dsquery user -name jbloggs -d some.domain.com
    

    This doesn't return anything because the user id is wrong..
    We can return a list of names that might match this using wildcard.
       dsquery user -name jblo* -d some.domain.com
    
       "CN=Bloggs Joe,OU=Mail Serv Help Desk,OU=Some Park,DC=SOME,DC=DOMAIN,DC=COM"
    

    now use DSGET to lookup the user id, copy/paste the above data.
         dsget user "CN=Bloggs Joe,OU=Mail Serv Help Desk,OU=Some Park,DC=SOME,DC=DOMAIN,DC=COM" -samid
       
         samid
         jbloggs2k
       dsget succeeded
    

    ..it would be cool to have some tool that automates the whole lookup, given the domain to connect to, and a partial user id or name.

    working from the command line..i suppose you could script this anyway.
    but still asking for alternative if available.


Advertisement