objNetwork.MapNetworkDrive "S:", "\\fsnvzrmsanb\organization"
Set objUser = GetObject("LDAP://" & strUserDN)
For Each strGroup In objUser.MemberOf
' Now begins normal group drive membership processing ...
If strGroup.Name = "mdg_sgai" and nGMap="N" Then
strMessage= "Detected Primary Group Membership for SGAI,"
DisplayMap
objNetwork.RemoveNetworkDrive "G:"
objNetwork.MapNetworkDrive "G:", "\\fsnvzrmsanb\mdg_sgai"
nGMap="Y"
strMessage= "nGMap: "&nGmap
DisplayMsg
End If
If strGroup.Name = "mdg_sgo" and nGMap="N" Then
strMessage= "Detected Primary Group Membership for SGO"
DisplayMap
objNetwork.RemoveNetworkDrive "G:"
objNetwork.MapNetworkDrive "G:", "\\fsnvzrmsanb\mdg_sgo"
nGMap="Y"
End If
If strGroup.Name = "mdg_sg" and nGMap="N" Then
strMessage= "Detected Primary Group Membership for SG"
DisplayMap
objNetwork.RemoveNetworkDrive "G:"
objNetwork.MapNetworkDrive "G:", "\\fsnvzrmsanb\mdg_sgd"
nGMap="Y"
End If
Next
Look at the above code and assume this conditions that the member being
tested is a member of all three groups. The nGMap (use to be numeric)
is set to "Y" in the first If block. The problem is the next two If
blocks 'Then' statements fire anyway. What am I not understanding here?
Any help appreciated, I'm getting blearied eyed ...
V/R
//SIGNED//
Stephen S. Wolfe, GS-11, DAF
Comm (813) 827-9994 DSN 651-9994
[EMAIL PROTECTED]
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.