[Samba] Winbind help
Hello, When I put 'wbinfo -u' always give me an error, can any one help me ?? ==> Error looking up domain users Thank you so much ! Agus = Ikuti polling TELKOM Memo 166 di www.plasa.com dan menangkan hadiah masing-masing Rp 250.000 tunai. = -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Winbind help
Hi everyone, I've been trying to use winbind in order to connect to WinNT PDC for authenticating user and also mapping user/group ids. We are using RH 7.3 Samba 2.2.3a I've followed the instruction provided in the document "Unified Logons between WindowsNT and UNIX using Winbind" We only want to authenticate SAMBA users so I've skipped the /etc/pam.d/* changes. This is the "impertant" entries of my smb.conf file workgroup = groupserv_melb netbios name = linux-smb netbios aliases = linux-test winbind separator = + winbind uid = 1-2 winbind gid = 1-2 winbind enum users = yes winbind enum groups = yes template homedir = /home/winnt/%D/%U template shell = /bin/bash password server = 138.79.130.20 encrypt passwords = yes smb passwd file = /etc/samba/smbpasswd unix password sync = Yes passwd program = /usr/bin/passwd %u add user script = /usr/sbin/useradd -d /home/winnt/%D/%U -s /bin/false -M %U The domain has been joined using smbpasswd Here are my questions: Everytime I enable domain logons on SAMBA and try the "wbinfo -t" I get Bad secret When the domain logons is disabled then the secret is good. if I type "wbinfo -u" I get all the domain users not a problem the same with the "wbinfo -g" for groups. Using the "add user script =" parameter trying to access the domain using smbclient eg. "smbclient //linux-smb/homes -W groupserv_melb -I 138.79.161.225 -U tst-steve" The home directory doesn't get created properly. The %D option is EMPTY. The user gets created in passwd/group/shadow but the HOME directory DOESN'T?? I get something like tst-steve:x:10058:10058::/home/winnt//tst-steve:/bin/false in the passwd file (with 2 // instead of the DOMAIN Name). Also winbindd log file complains about port 445 on the PDC [2002/09/30 16:02:24, 2] lib/util_sock.c:open_socket_out(858) error connecting to 138.79.130.20:445 (Connection refused) What does that port do? So what is the best way to do it if I want to authenticate the users from the WindowsNT PDC and also give them access to SAMBA shares using the Windows NT permissions? Thanks in advance. -- Steve Simeonidis Network Engineer, Spherion Education Spherion Group Ltd 1st Floor, 493 St. Kilda Rd, Melbourne VIC 3004, Australia Phone: +61 3 9243 2382Fax:+61 3 9820 2010 Email: [EMAIL PROTECTED] The information contained in this email and any attachments to it: (a) may be confidential and if you are not the intended recipient, any interference with, use, disclosure or copying of this material is unauthorised and prohibited; and (b) may contain personal information of the recipient and/or the sender as defined under the Privacy Act 1988 (Cth). Consent is hereby given by the recipient(s) to collect, hold and use such information and any personal information contained in a response to this email, for any reasonable purpose in the ordinary course of Spherion's business, including forwarding this email internally or disclosing it to a third party. All personal information collected by Spherion will be handled in accordance with Spherion's Privacy Policy. If you have received this email in error, please notify the sender and delete it. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
RE: [Samba] Winbind help
> -Original Message- > From: Agus Santosa [mailto:agus.santosa@;telkom.net] > When I put 'wbinfo -u' > > always give me an error, can any one help me ?? > > ==> Error looking up domain users What do you get from 'wbinfo -t'? If it says 'Secret is bad', you aren't joined to the domain properly. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Winbind help
Sir, The message when I type : winbind -t is [root@att /]# wbinfo -t Could not check secret Do you have any ideas?? Thank you, Agus Santosa On Tue, 29 Oct 2002 09:56:45 -0500 David Brodbeck <[EMAIL PROTECTED]> wrote: -Original Message- From: Agus Santosa [mailto:agus.santosa@;telkom.net] When I put 'wbinfo -u' always give me an error, can any one help me ?? ==> Error looking up domain users What do you get from 'wbinfo -t'? If it says 'Secret is bad', you aren't joined to the domain properly. = Ikuti polling TELKOM Memo 166 di www.plasa.com dan menangkan hadiah masing-masing Rp 250.000 tunai. = -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
RE: [Samba] Winbind help
> -Original Message- > From: Agus Santosa [mailto:agus.santosa@;telkom.net] > The message when I type : winbind -t is > > [root@att /]# wbinfo -t > Could not check secret > > Do you have any ideas?? I'd try re-joining the domain. Be sure to remove the machine account and create a new one, first, using Server Manager. Then use smbpasswd -j to join. (I've had better luck with this method than with trying to do the whole procedure automatically using smbpasswd.) -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Winbind help
> Message: 4 > From: "Simeonidis, Steve" <[EMAIL PROTECTED]> > Reply-To: [EMAIL PROTECTED] > To: [EMAIL PROTECTED] > Date: Mon, 30 Sep 2002 16:48:52 +1000 > Subject: [Samba] Winbind help > > Hi everyone, > > I've been trying to use winbind in order to > connect to WinNT PDC for authenticating user and > also mapping user/group ids. > > We are using RH 7.3 Samba 2.2.3a > > I've followed the instruction provided in the document > "Unified Logons between WindowsNT and UNIX using Winbind" > > We only want to authenticate SAMBA users so I've skipped the > /etc/pam.d/* changes. > > This is the "impertant" entries of my smb.conf file >workgroup = groupserv_melb >netbios name = linux-smb >netbios aliases = linux-test > >winbind separator = + >winbind uid = 1-2 >winbind gid = 1-2 >winbind enum users = yes >winbind enum groups = yes >template homedir = /home/winnt/%D/%U >template shell = /bin/bash > >password server = 138.79.130.20 Rather use 'password server = *' for winbind >encrypt passwords = yes >smb passwd file = /etc/samba/smbpasswd >unix password sync = Yes >passwd program = /usr/bin/passwd %u > >add user script = /usr/sbin/useradd -d /home/winnt/%D/%U -s /bin/false -M > %U Don't use this. > > The domain has been joined using smbpasswd > > Here are my questions: > Everytime I enable domain logons on SAMBA and try the > "wbinfo -t" I get Bad secret > When the domain logons is disabled then the secret is good. You shouldn't have domain logons enabled with winbind in 2.2.x. > > if I type "wbinfo -u" I get all the domain users not a problem > the same with the "wbinfo -g" for groups. Even when wbinfo -t doesn't work? > > > Using the "add user script =" parameter trying to access the domain > using smbclient eg. > "smbclient //linux-smb/homes -W groupserv_melb -I 138.79.161.225 -U > tst-steve" > The home directory doesn't get created properly. The %D option is EMPTY. > The user gets created in passwd/group/shadow but the HOME directory > DOESN'T?? > > I get something like > tst-steve:x:10058:10058::/home/winnt//tst-steve:/bin/false > in the passwd file (with 2 // instead of the DOMAIN Name). Rather use pam_mkhomedir, and enable pam session support in smb.conf to force samba to use pam_mkhomedir. > > Also winbindd log file complains about port 445 on the PDC > [2002/09/30 16:02:24, 2] lib/util_sock.c:open_socket_out(858) > error connecting to 138.79.130.20:445 (Connection refused) > What does that port do? > This isn't relevant to your problem AFAIK. > > So what is the best way to do it if I want to authenticate the users from the > WindowsNT PDC and also give them access to SAMBA shares using the Windows > NT permissions? Install Mandrake 9.0 using a network install, you can join the domain during installation. If you can't do a network install, you may need to do some stuff manually. ACLs are supported on XFS and ext2/ext3 (but, you must choose 'acl' as a mount option for them before it will work). If you can't get 9.0, 8.2 with the Mandrake RPMs from ftp.samba.org will get you about the same place as a non-network install of 9.0, except only ACLs on XFS. To get ACLs on RH7.x, you need to get the install ISO from SGI's XFS site, or rebuild the kernel and samba yourselfwith acl support. I am not sure about 8.0. You will find some relevant files in either samba CVS or Mandrake CVS, with examples for using pam_mkhomedir etc. Some of this is covered in http://ranger.dnsalias.com/mandrake/muo/connect/csamba5.html#winbind Regards, Buchan -- |Registered Linux User #182071-| Buchan MilneMechanical Engineer, Network Manager Cellphone * Work+27 82 472 2231 * +27 21 8828820x121 Stellenbosch Automotive Engineering http://www.cae.co.za GPG Key http://ranger.dnsalias.com/bgmilne.asc 1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] winbind help for newbie
Title: Message I've been looking thru manpages and online for help. I *think* I've got winbind mostly setup (somehow) but it seems to be using the wrong Domain. Some info: I am running RH7.3 Kernel 2.4.18-3 Samba 2.2.7 In my smb.conf file I have: [global] security = Domain workgroup = LMC winbind separator = + winbind uid = 1-2 winbind gid = 1-2 winbind enum users = yes winbind enum goups = yes winbind cache time = 10 In my nsswitch.conf file I have: passwd: files winbind shadow: files winbind group: files winbind When I do a wbinfo -u or -g I get the info for our LMCMIG domain. Why is it using the LMCMIG domain instead of what I have in the smb.conf file? How do I tell it to use LMC?? I am a newbie to all of this If I should be looking or asking elsewhereplease just let me know... Thanks for any help! Dan
RE: [Samba] winbind help for newbie
I joined the domain (LMC) with the following command Smbpasswd -j LMC -r LMC_EXC1 (this is our PDC) -U administrator I then got prompted for the password, I entered it And got the message "Joined the LMC Domain" Then I stopped and restarted the smb service Did a wbinfo -u and then -g and still got info for the LMCMIG domain. I then went into the smb.conf file, changed Password server = * To Password server = LMC_EXC1 Restarted smb Still got the info for LMCMIG Went back into smb.conf Changed Password server = LMC_EXC1 To Password server = (IP address of server) Restarted smb Still no luck. Does SMB or Winbind have the info cached somewhere? Is there a way to flush that cache??? Thanks for your help! -Original Message- From: Errol Neal [mailto:[EMAIL PROTECTED]] Sent: Friday, December 13, 2002 12:26 PM To: LaSusa, Dan Subject: Re: [Samba] winbind help for newbie At 11:44 AM 12/13/2002 -0500, you wrote: >I've been looking thru manpages and online for help. > >I *think* I've got winbind mostly setup (somehow) but it seems to be >using the wrong Domain. > >Some info: >I am running RH7.3 >Kernel 2.4.18-3 >Samba 2.2.7 > >In my smb.conf file I have: >[global] > security = Domain > workgroup = LMC > > winbind separator = + > winbind uid = 1-2 > winbind gid = 1-2 > winbind enum users = yes > winbind enum goups = yes > winbind cache time = 10 > >In my nsswitch.conf file I have: > >passwd:files winbind >shadow:files winbind >group: files winbind > >When I do a wbinfo -u or -g I get the info for our LMCMIG domain. > >Why is it using the LMCMIG domain instead of what I have in the >smb.conf file? How do I tell it to use LMC?? > >I am a newbie to all of this > >If I should be looking or asking elsewhereplease just let me >know... > >Thanks for any help! > >Dan > You might want to try the password server parameter. How did you join the domain? Did you specifiy the IP address of the password server? Errol -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
RE: [Samba] winbind help for newbie
Following up with more info... When I run: ./winbindd -i -d 1 winbindd version 2.2.7 started. Copyright The Samba Team 2000-2001 Added domain LMC (S-1-5-21-1530202311-1617714320-7473742) getting trusted domain list Added domain LMCMIG (S-1-5-21-1039822437-107361799-1990678075) So it looks like it's adding the LMC Domain (which is what I want) but then adds LMCMIG too (which if fine, but I don't really need) it almost seems to replace LMC with LMCMIG. When I then run wbinfo -m all I get is LMCMIG! I don't get it?!? Dan -Original Message- From: LaSusa, Dan [mailto:[EMAIL PROTECTED]] Sent: Friday, December 13, 2002 12:46 PM To: '[EMAIL PROTECTED]' Subject: RE: [Samba] winbind help for newbie I joined the domain (LMC) with the following command Smbpasswd -j LMC -r LMC_EXC1 (this is our PDC) -U administrator I then got prompted for the password, I entered it And got the message "Joined the LMC Domain" Then I stopped and restarted the smb service Did a wbinfo -u and then -g and still got info for the LMCMIG domain. I then went into the smb.conf file, changed Password server = * To Password server = LMC_EXC1 Restarted smb Still got the info for LMCMIG Went back into smb.conf Changed Password server = LMC_EXC1 To Password server = (IP address of server) Restarted smb Still no luck. Does SMB or Winbind have the info cached somewhere? Is there a way to flush that cache??? Thanks for your help! -Original Message- From: Errol Neal [mailto:[EMAIL PROTECTED]] Sent: Friday, December 13, 2002 12:26 PM To: LaSusa, Dan Subject: Re: [Samba] winbind help for newbie At 11:44 AM 12/13/2002 -0500, you wrote: >I've been looking thru manpages and online for help. > >I *think* I've got winbind mostly setup (somehow) but it seems to be >using the wrong Domain. > >Some info: >I am running RH7.3 >Kernel 2.4.18-3 >Samba 2.2.7 > >In my smb.conf file I have: >[global] > security = Domain > workgroup = LMC > > winbind separator = + > winbind uid = 1-2 > winbind gid = 1-2 > winbind enum users = yes > winbind enum goups = yes > winbind cache time = 10 > >In my nsswitch.conf file I have: > >passwd:files winbind >shadow:files winbind >group: files winbind > >When I do a wbinfo -u or -g I get the info for our LMCMIG domain. > >Why is it using the LMCMIG domain instead of what I have in the >smb.conf file? How do I tell it to use LMC?? > >I am a newbie to all of this > >If I should be looking or asking elsewhereplease just let me >know... > >Thanks for any help! > >Dan > You might want to try the password server parameter. How did you join the domain? Did you specifiy the IP address of the password server? Errol -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
RE: [Samba] winbind help for newbie
Have you run wbinfo -A Administrator%password ? http://marc.theaimsgroup.com/?l=samba&m=103848311516255&w=2 ~ Daniel > -Original Message- > From: LaSusa, Dan [mailto:[EMAIL PROTECTED]] > Sent: Saturday, December 14, 2002 11:30 AM > To: '[EMAIL PROTECTED]' > Subject: RE: [Samba] winbind help for newbie > > > Following up with more info... > > When I run: > > ./winbindd -i -d 1 > winbindd version 2.2.7 started. > Copyright The Samba Team 2000-2001 > Added domain LMC (S-1-5-21-1530202311-1617714320-7473742) > getting trusted domain list > Added domain LMCMIG (S-1-5-21-1039822437-107361799-1990678075) > > So it looks like it's adding the LMC Domain (which is what I > want) but then > adds LMCMIG too (which if fine, but I don't really need) it > almost seems to > replace LMC with LMCMIG. > > When I then run > > wbinfo -m > > all I get is > > LMCMIG! > > I don't get it?!? > > Dan > > -Original Message- > From: LaSusa, Dan [mailto:[EMAIL PROTECTED]] > Sent: Friday, December 13, 2002 12:46 PM > To: '[EMAIL PROTECTED]' > Subject: RE: [Samba] winbind help for newbie > > > I joined the domain (LMC) with the following command > > Smbpasswd -j LMC -r LMC_EXC1 (this is our PDC) -U administrator > > I then got prompted for the password, I entered it > > And got the message "Joined the LMC Domain" > > Then I stopped and restarted the smb service > > Did a wbinfo -u and then -g and still got info for the LMCMIG domain. > > I then went into the smb.conf file, changed > > Password server = * > > To > > Password server = LMC_EXC1 > > Restarted smb > > Still got the info for LMCMIG > > Went back into smb.conf > > Changed > > Password server = LMC_EXC1 > > To > > Password server = (IP address of server) > > Restarted smb > > Still no luck. > > Does SMB or Winbind have the info cached somewhere? Is there > a way to flush > that cache??? > > Thanks for your help! > > -Original Message- > From: Errol Neal [mailto:[EMAIL PROTECTED]] > Sent: Friday, December 13, 2002 12:26 PM > To: LaSusa, Dan > Subject: Re: [Samba] winbind help for newbie > > > At 11:44 AM 12/13/2002 -0500, you wrote: > >I've been looking thru manpages and online for help. > > > >I *think* I've got winbind mostly setup (somehow) but it seems to be > >using the wrong Domain. > > > >Some info: > >I am running RH7.3 > >Kernel 2.4.18-3 > >Samba 2.2.7 > > > >In my smb.conf file I have: > >[global] > > security = Domain > > workgroup = LMC > > > > winbind separator = + > > winbind uid = 1-2 > > winbind gid = 1-2 > > winbind enum users = yes > > winbind enum goups = yes > > winbind cache time = 10 > > > >In my nsswitch.conf file I have: > > > >passwd:files winbind > >shadow:files winbind > >group: files winbind > > > >When I do a wbinfo -u or -g I get the info for our LMCMIG domain. > > > >Why is it using the LMCMIG domain instead of what I have in the > >smb.conf file? How do I tell it to use LMC?? > > > >I am a newbie to all of this > > > >If I should be looking or asking elsewhereplease just let me > >know... > > > >Thanks for any help! > > > >Dan > > > > > You might want to try the password server parameter. How did > you join the > domain? Did you specifiy the IP address of the password server? > > > Errol > > > --- This message is the property of Time Inc. or its affiliates. It may be legally privileged and/or confidential and is intended only for the use of the addressee(s). No addressee should forward, print, copy, or otherwise reproduce this message in any manner that would allow it to be viewed by any individual not originally listed as a recipient. If the reader of this message is not the intended recipient, you are hereby notified that any unauthorized disclosure, dissemination, distribution, copying or the taking of any action in reliance on the information herein is strictly prohibited. If you have received this communication in error, please immediately notify the sender and delete this message. Thank you. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
RE: [Samba] winbind help for newbie
I just tried it... It didn't error or anythingit just came back to a prompt... At which point I ran Wbinfo -m And still got LMCMIG For what it's worthThis is an NT4 domain. I noticed in the link you sent, it seemed to talk about a win2k domain Thanks for trying :-) (man this is frustrating) Dan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 2:55 PM To: LaSusa, Dan; [EMAIL PROTECTED] Subject: RE: [Samba] winbind help for newbie Have you run wbinfo -A Administrator%password ? http://marc.theaimsgroup.com/?l=samba&m=103848311516255&w=2 ~ Daniel > -Original Message- > From: LaSusa, Dan [mailto:[EMAIL PROTECTED]] > Sent: Saturday, December 14, 2002 11:30 AM > To: '[EMAIL PROTECTED]' > Subject: RE: [Samba] winbind help for newbie > > > Following up with more info... > > When I run: > > ./winbindd -i -d 1 > winbindd version 2.2.7 started. > Copyright The Samba Team 2000-2001 > Added domain LMC (S-1-5-21-1530202311-1617714320-7473742) > getting trusted domain list > Added domain LMCMIG (S-1-5-21-1039822437-107361799-1990678075) > > So it looks like it's adding the LMC Domain (which is what I > want) but then > adds LMCMIG too (which if fine, but I don't really need) it > almost seems to > replace LMC with LMCMIG. > > When I then run > > wbinfo -m > > all I get is > > LMCMIG! > > I don't get it?!? > > Dan > > -Original Message----- > From: LaSusa, Dan [mailto:[EMAIL PROTECTED]] > Sent: Friday, December 13, 2002 12:46 PM > To: '[EMAIL PROTECTED]' > Subject: RE: [Samba] winbind help for newbie > > > I joined the domain (LMC) with the following command > > Smbpasswd -j LMC -r LMC_EXC1 (this is our PDC) -U administrator > > I then got prompted for the password, I entered it > > And got the message "Joined the LMC Domain" > > Then I stopped and restarted the smb service > > Did a wbinfo -u and then -g and still got info for the LMCMIG domain. > > I then went into the smb.conf file, changed > > Password server = * > > To > > Password server = LMC_EXC1 > > Restarted smb > > Still got the info for LMCMIG > > Went back into smb.conf > > Changed > > Password server = LMC_EXC1 > > To > > Password server = (IP address of server) > > Restarted smb > > Still no luck. > > Does SMB or Winbind have the info cached somewhere? Is there > a way to flush > that cache??? > > Thanks for your help! > > -Original Message- > From: Errol Neal [mailto:[EMAIL PROTECTED]] > Sent: Friday, December 13, 2002 12:26 PM > To: LaSusa, Dan > Subject: Re: [Samba] winbind help for newbie > > > At 11:44 AM 12/13/2002 -0500, you wrote: > >I've been looking thru manpages and online for help. > > > >I *think* I've got winbind mostly setup (somehow) but it seems to be > >using the wrong Domain. > > > >Some info: > >I am running RH7.3 > >Kernel 2.4.18-3 > >Samba 2.2.7 > > > >In my smb.conf file I have: > >[global] > > security = Domain > > workgroup = LMC > > > > winbind separator = + > > winbind uid = 1-2 > > winbind gid = 1-2 > > winbind enum users = yes > > winbind enum goups = yes > > winbind cache time = 10 > > > >In my nsswitch.conf file I have: > > > >passwd:files winbind > >shadow:files winbind > >group: files winbind > > > >When I do a wbinfo -u or -g I get the info for our LMCMIG domain. > > > >Why is it using the LMCMIG domain instead of what I have in the > >smb.conf file? How do I tell it to use LMC?? > > > >I am a newbie to all of this > > > >If I should be looking or asking elsewhereplease just let me > >know... > > > >Thanks for any help! > > > >Dan > > > > > You might want to try the password server parameter. How did > you join the > domain? Did you specifiy the IP address of the password server? > > > Errol > > > --- This message is the property of Time Inc. or its affiliates. It may be legally privileged and/or confidential and is intended only for the use of the addressee(s). No addressee should forward, print, copy, or otherwise reproduce this message in any manner that would allow it to be viewed by any individual not originally listed as a recipient. If the reader of this message is not the intended recipient, you are hereby notified that any unauthorized disclosure, dissemination, distribution, copying or the taking of any action in reliance on the information herein is strictly prohibited. If you have received this communication in error, please immediately notify the sender and delete this message. Thank you. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Winbind Help : NT Group permissions don't seem to apply when using username map
Samba 2.2.5 security = domain with winbind Also Using a username map for users with a corresponding UNIX account. Username.map: Karen = WALNETNT_karen (unix) (nt) Causes karen to come onto the samba share with UID and GID matching that used on the UNIX side. This lets karen (nt) write in any areas owned by karen (UNIX), but public areas that are shared to all Domain Users (write list = @"WALNETNT_Domain Users") are not writable now by karen from the NT side. It seems that once the UNIX UID is assigned, the daemons lose all information about any domain group memberships that the user had. Any idea how I can fix this? Thanks, Karen Wieprecht -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba