Koozali.org: home of the SME Server

login script subtleties

stitch

login script subtleties
« on: February 10, 2002, 11:20:19 AM »
brethren,

Is it possible to use IFMEMBER.EXE in the netlogon.bat to query domain group membership? I'm using SME v5 and samba 2.2.2 and users login to a domain called DOMAIN. I would like to assign drive mappings based on domain group membership and have tried the following:

IFMEMBER DOMAIN\girls
if not errorlevel 1 goto boys
net use g: \esmith\girls-data

This doesn't seem to work. If I'm logged in as a domain user and I run IFMEMBER /L (list group membership), there is no indication that the user is a member of any groups that they're in. Instead I get something like:

User is a member of group DOMAIN\jsmith
User is a member of group DOMAIN\unix_group.2147483404

...and a few others.

Any ideas?

cheers,
stitch