Home Forums OS X Server and Client Discussion Active Directory Finding Active Directory group GIDs

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #360875
    jaharmi
    Participant

    Is there a way to find Active Directory GIDs, as they will be seen in Mac OS X (and used in the filesystem) from a client — either bound or unbound? Preferably, I’d like a way to get them all or specific ones via a search, not just 16.

    I’m presuming that they are translated into a number from an alphanumeric field in the directory itself.

    I’ve tried muddling around with dscl, and that doesn’t seem to do it — or I’m doing it wrong. Advice and examples would be appreciated if it is possible.

    I know I can see the GIDs in Workgroup Manager, but I’d much prefer a way that can be scripted.

    I need to see the GIDs as Mac OS X interprets them, not as they are listed in the directory. If I can find a translation between the directory and Directory Services representation of each, or a way to convert the AD group ID to what Mac OS X will use, then that would also be helpful.

    Thanks!

    #362771
    taco
    Participant

    I use the id command in BASH. Tells me what groups the user is a member of. I see GIDs too. One user at a time, but useful to me.

    Example –

    G5:~ taco$ id mysql
    uid=74(mysql) gid=74(mysql) groups=74(mysql)
    G5:~ pha1$

    Hope this helps.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Comments are closed