Umberto Nicoletti
2002-Feb-19 06:14 UTC
[Samba] Samba PDC and User Management with Perl scripts
Hello, I want to implement a perl logon script which would map network shares depending on group membership. This way when I move a user to or from a group it automatically gets the new shares. The PDC is Samba 2.2.1 or 2.2.2 on BSD and clients are NT workstation and 2000 Pro. Perl is latest activestate for win32 and is intended to run on Win32 clients. The big trouble is getting user Group membership to work when I call Win32::Lanman::GroupIsMember() or LocalGroupIsMember(). Right now, even though Samba is configured OK they always return false, even if a user is member of a group. I can use User Manager to view user and group information... Am I trying to use functions not implemented yet? Thanks, umberto -- Umberto Nicoletti - unicoletti@arpa.veneto.it | sysmaster@arpa.veneto.it Tel. 049-8239380 (assistenza) "We'll try to make different mistakes this time." - Larry Wall
Buchan Milne
2002-Feb-19 08:26 UTC
[Samba] Samba PDC and User Management with Perl scripts
We do something similar using ntlogon, except that ntlogon runs on the pdc when the client connects to the netlogon share, and auto-generates a windows batch file. So you don't need to install software on the client, or wait for group enumeration features to be added to samba (or use samba-3.0-alphas, or wait for samba-3.0.0). http://www.craigelachie.org/rhacer/ntlogon/ Buchan> Message: 2 > Date: Tue, 19 Feb 2002 15:08:43 +0100 > From: Umberto Nicoletti <unicoletti@arpa.veneto.it> > To: samba@lists.samba.org > Subject: [Samba] Samba PDC and User Management with Perl scripts > > Hello, > I want to implement a perl logon script which would map network shares > depending on group membership. This way when I move a user to or from a > group > it automatically gets the new shares. > > The PDC is Samba 2.2.1 or 2.2.2 on BSD and clients are NT workstation > and 2000 Pro. > Perl is latest activestate for win32 and is intended to run on Win32 > clients. > > The big trouble is getting user Group membership to work when I call > Win32::Lanman::GroupIsMember() or LocalGroupIsMember(). > Right now, even though Samba is configured OK they always return false, > even if a user is member of a group. > I can use User Manager to view user and group information... > > Am I trying to use functions not implemented yet? > > Thanks, > umberto > -- Umberto Nicoletti - unicoletti@arpa.veneto.it | sysmaster@arpa.veneto.it Tel. 049-8239380 (assistenza) "We'll try to make different mistakes this time." - Larry Wall >-- |----------------Registered Linux User #182071-----------------| Buchan Milne Mechanical Engineer, Network Manager Cellphone * Work +27 82 472 2231 * +27 21 8828820x202 Stellenbosch Automotive Engineering http://www.cae.co.za GPG Key http://ranger.dnsalias.com/gpg.key
thomas_tiedtke@de.schindler.com
2002-Feb-19 17:32 UTC
[Samba] Samba PDC and User Management with Perl scripts
Hi Umberto, the simply way is to make a share with use of the group (%G) substitution. A path=/groups/%G will give you /groups/<primary groupname of user (%U)> ... it?s work like the homes section. A another way is a "root preexec=<shell script> %U %G ...." for the netlogon share to generate the netlogon scripts for the clients. This script must generate a client style bat or cmd file like <username>.cmd , which was called by the "logon script=<username>.cmd" parameter. Like: netlogon LOGONSERVER\<Group_Share> and so on ... The netlogon script must have CR LF at any end of a line! I hope, it help?s! Regards, Thomas -------------- next part -------------- HTML attachment scrubbed and removed
Gerald Carter
2002-Feb-25 08:39 UTC
[Samba] Samba PDC and User Management with Perl scripts
On Tue, 19 Feb 2002, Umberto Nicoletti wrote:> Hello, > I want to implement a perl logon script which would map network shares > depending on group membership. This way when I move a user to or from a > group > it automatically gets the new shares. > > The PDC is Samba 2.2.1 or 2.2.2 on BSD and clients are NT workstation > and 2000 Pro. > Perl is latest activestate for win32 and is intended to run on Win32 > clients. > > The big trouble is getting user Group membership to work when I call > Win32::Lanman::GroupIsMember() or LocalGroupIsMember(). > Right now, even though Samba is configured OK they always return false, > even if a user is member of a group. > I can use User Manager to view user and group information...Check the samba logs. I think you'll find some missing rpc's in 2.2 jerry --------------------------------------------------------------------- Hewlett-Packard http://www.hp.com SAMBA Team http://www.samba.org -- http://www.plainjoe.org "Sam's Teach Yourself Samba in 24 Hours" 2ed. ISBN 0-672-32269-2 --"I never saved anything for the swim back." Ethan Hawk in Gattaca--
Maybe Matching Threads
- weighted average grouped by variables
- weighted average grouped by variables
- assign NA to rows by test on multiple columns of a data frame
- assign NA to rows by test on multiple columns of a data frame
- assign NA to rows by test on multiple columns of a data frame