Anonymous_User

Absent Member.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2013-10-15
14:54
585 views
Problem with login script
I have a login script that tests for user membership and then takes action based on the user. However, one of my tests is returning true for all uses. Here is the line in question:
if member of ".GR_Diagnostic Group.GR.VRA" or ".GR_Review Group.GR.VRA" then
As I mentioned, the above should only return TRUE if the user is a member of either of the two groups, but it is returning TRUE for all users. I know this used to work. Client workstations all run Windows XP sp3 and Novell client 4.91 SP5 IR1.
Suggestions? Thanks, Chris.
if member of ".GR_Diagnostic Group.GR.VRA" or ".GR_Review Group.GR.VRA" then
As I mentioned, the above should only return TRUE if the user is a member of either of the two groups, but it is returning TRUE for all users. I know this used to work. Client workstations all run Windows XP sp3 and Novell client 4.91 SP5 IR1.
Suggestions? Thanks, Chris.
4 Replies
Anonymous_User

Absent Member.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2013-10-15
15:14
Further testing indicates the "or" is not being processed properly.
>>> cmosentine<cmosentine@N0_5pam_vrapc.com> 10/15/2013 9:54 AM >>>
I have a login script that tests for user membership and then takes action based on the user. However, one of my tests is returning true for all uses. Here is the line in question:
if member of ".GR_Diagnostic Group.GR.VRA" or ".GR_Review Group.GR.VRA" then
As I mentioned, the above should only return TRUE if the user is a member of either of the two groups, but it is returning TRUE for all users. I know this used to work. Client workstations all run Windows XP sp3 and Novell client 4.91 SP5 IR1.
Suggestions? Thanks, Chris.
>>> cmosentine<cmosentine@N0_5pam_vrapc.com> 10/15/2013 9:54 AM >>>
I have a login script that tests for user membership and then takes action based on the user. However, one of my tests is returning true for all uses. Here is the line in question:
if member of ".GR_Diagnostic Group.GR.VRA" or ".GR_Review Group.GR.VRA" then
As I mentioned, the above should only return TRUE if the user is a member of either of the two groups, but it is returning TRUE for all users. I know this used to work. Client workstations all run Windows XP sp3 and Novell client 4.91 SP5 IR1.
Suggestions? Thanks, Chris.


Knowledge Partner
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2013-10-15
15:23
On 15.10.2013 15:54, cmosentine wrote:
> I have a login script that tests for user membership and then takes action based
> on the user. However, one of my tests is returning true for all uses. Here is
> the line in question:
> if member of ".GR_Diagnostic Group.GR.VRA" or ".GR_Review Group.GR.VRA" then
That syntax is wrong. The second statement is missing the "if member
of". The "or" seperates two different statements, e.g "if member of
something.ou.o" and day of week="monday".
E.G You can't leave out the full syntax.
CU,
--
Massimo Rosen
Novell Knowledge Partner
No emails please!
http://www.cfc-it.de
> I have a login script that tests for user membership and then takes action based
> on the user. However, one of my tests is returning true for all uses. Here is
> the line in question:
> if member of ".GR_Diagnostic Group.GR.VRA" or ".GR_Review Group.GR.VRA" then
That syntax is wrong. The second statement is missing the "if member
of". The "or" seperates two different statements, e.g "if member of
something.ou.o" and day of week="monday".
E.G You can't leave out the full syntax.
CU,
--
Massimo Rosen
Novell Knowledge Partner
No emails please!
http://www.cfc-it.de
CU,
--
Massimo Rosen
Micro Focus Knowledge Partner
No emails please!
http://www.cfc-it.de
--
Massimo Rosen
Micro Focus Knowledge Partner
No emails please!
http://www.cfc-it.de
Anonymous_User

Absent Member.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2013-10-15
15:24
Looks like this syntax works properly:
if ((member of ".GR_Diagnostic Group.GR.VRA") or (member of ".GR_Review Group.GR.VRA"))
Chris.
>>> cmosentine<cmosentine@N0_5pam_vrapc.com> 10/15/2013 10:14 AM >>>
Further testing indicates the "or" is not being processed properly.
>>> cmosentine<cmosentine@N0_5pam_vrapc.com> 10/15/2013 9:54 AM >>>
I have a login script that tests for user membership and then takes action based on the user. However, one of my tests is returning true for all uses. Here is the line in question:
if member of ".GR_Diagnostic Group.GR.VRA" or ".GR_Review Group.GR.VRA" then
As I mentioned, the above should only return TRUE if the user is a member of either of the two groups, but it is returning TRUE for all users. I know this used to work. Client workstations all run Windows XP sp3 and Novell client 4.91 SP5 IR1.
Suggestions? Thanks, Chris.
if ((member of ".GR_Diagnostic Group.GR.VRA") or (member of ".GR_Review Group.GR.VRA"))
Chris.
>>> cmosentine<cmosentine@N0_5pam_vrapc.com> 10/15/2013 10:14 AM >>>
Further testing indicates the "or" is not being processed properly.
>>> cmosentine<cmosentine@N0_5pam_vrapc.com> 10/15/2013 9:54 AM >>>
I have a login script that tests for user membership and then takes action based on the user. However, one of my tests is returning true for all uses. Here is the line in question:
if member of ".GR_Diagnostic Group.GR.VRA" or ".GR_Review Group.GR.VRA" then
As I mentioned, the above should only return TRUE if the user is a member of either of the two groups, but it is returning TRUE for all users. I know this used to work. Client workstations all run Windows XP sp3 and Novell client 4.91 SP5 IR1.
Suggestions? Thanks, Chris.
hschoene

Commodore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2013-10-15
15:48
Hi,
the second expression after the "or" is not a comparison. It is true everytime.
Try:
if member of ".GR_Diagnostic Group.GR.VRA" or member of ".GR_Review Group.GR.VRA" then ...
Heiko
the second expression after the "or" is not a comparison. It is true everytime.
Try:
if member of ".GR_Diagnostic Group.GR.VRA" or member of ".GR_Review Group.GR.VRA" then ...
Heiko