Page 1 of 1 1
Topic Options
#38249 - 2003-03-21 10:39 PM Mapping Drives for Groups in Active Directory OU's
James Spadaro Offline
Lurker

Registered: 2003-03-21
Posts: 2
I've been trying to map drives based on Active Directory group membership using the INGROUP command.

This is not a problem as long as the group is in the default AD container (Users).

However, I've created an OU called "Security Groups" and placed all the security groups in that container. When trying to map drives based on groups in this container the INGROUP command simply does not work.

What's the problem here? Do i belong on a short-bus?

Top
#38250 - 2003-03-21 10:49 PM Re: Mapping Drives for Groups in Active Directory OU's
NTDOC Administrator Online   content
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
Hello James and welcome to the board.

Please try the following.



IF INGROUP('YourDomainName\YourGroupName')
  ? 'Well.. what do you know, I am in the group'
ELSE
  ? 'Well.. what do you know, Im not in the group'
ENDIF



I'm thinking you may need to add the DOMAIN as part of the statement, and possibly use a /F switch for a fresh Token check.

[ 21. March 2003, 23:07: Message edited by: NTDOC ]

Top
#38251 - 2003-03-21 11:34 PM Re: Mapping Drives for Groups in Active Directory OU's
NTDOC Administrator Online   content
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
Frank... you know this guy?

ESPN - MIS PC Group

Top
#38252 - 2003-03-21 11:43 PM Re: Mapping Drives for Groups in Active Directory OU's
James Spadaro Offline
Lurker

Registered: 2003-03-21
Posts: 2
Well slam clam bam! It worked!!!

Actually it didn't work, but thank you for the help.

What's Frank say about it?

Frank?

Top
#38253 - 2003-03-22 01:03 AM Re: Mapping Drives for Groups in Active Directory OU's
NTDOC Administrator Online   content
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
How did you try it?

C:\SCRIPTS\KIX32.EXE TEST.KIX /F



IF INGROUP('YourDomainName\YourGroupName')
  ? 'Well.. what do you know, I am in the group' +@ERROR +' : '+@SERROR
ELSE
  ? 'Well.. what do you know, Im not in the group' +@ERROR +' : '+@SERROR
ENDIF



Please try the above code and let us know what was returned.

We have a James F. Spadaro here at work, was wondering if it was you or not.

I have a Security Group OU as well, and the above code works fine for me.

Also check which DC authenticated you, then connect to that AD Controller with Active Directory Users and Computers and VERIFY that the user/group is on that DC as well. Maybe some issue with replication.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1471 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.132 seconds in which 0.103 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org