[Samba] ldap + samba + group membership problem

Matthew Koster MKoster at intldata.ca
Thu Jun 17 17:43:42 GMT 2004


>Now, in the "netlogon" global login script that I've made : SARTUP.BAT
>I would like, to affect a drive letter for the user "joe" depending on his
>"groups membership" so :
>
>net use D: \\servershare\docs (joe is group membership of "docs")
>net use F: \\servershare\software (joe is group membership of "software" 
too)
>...

I got by this using the ifmember.exe distributed my Microsoft.
 
By using the following syntax in the .bat I was able to map drives based on 
group
 
@echo off 
ifmember docs 
if not errorlevel 1 goto group2 
net use D: \\servershare\docs  
group2: 
ifmember software 
if not errorlevel 1 goto group2 
net use F: \\servershare\software  
:quit
 
If you do a search of ifmember.exe you'll find the install from MS, once 
you've installed it (default is something like c:\Program Files\Resource 
Kit) Copy the ifmember.exe to your windows directory...
 
This was the easiest solution.  takes a few seconds to install on a machine. 


_____________________________________________________________________________

Matthew Koster
Customer Support Technician
International Datacasting Corporation
http://www.intldata.ca
613-596-4120 ext 254

This message, and the documents attached hereto, is intended only for the
addressee and may contain privileged or confidential information.  Any
unauthorized disclosure is strictly prohibited.  If you have received this
message in error, please notify us immediately so that we may correct our
internal records.  Please then delete the original message.  Thank you.


More information about the samba mailing list