November 22, 2024, 07:27:02 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: Winbind on fedora core 2 SOLVED  (Read 7971 times)

Offline waynefourie

  • Linux Noob !
  • *
  • Posts: 7
Winbind on fedora core 2 SOLVED
« on: July 27, 2004, 02:47:52 PM »
To everyone who ever gave up on RedHat when they got:
wbinfo -t - Failed...

Well I am here to tell you i HAVE SUCCEEDED and am currently looking for anything that might go wrong...

Here is how i did it.
PS. I have and win2k and active directory going - SO HA

How to authenticate windows users on Fedora Core 2

This is how I manage to authenticate windows users on Fedora Core 2.
This is what I’m currently using: Fedora Core 2
I installed: Samba-client-3.0.3-5, Samba-3.0.3-5, Samba-common-3.0.3-5. Winbind is automatically installed with these packages.

I made the following changes in my smb.conf file:

[Global]

workgroup = “DomainName”
netbios name = “Name”
log file = /var/log/samba/%m.log
max log size = 50
security = server
password server = *
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*UNIX*password* %n\n *Retype*new*UNIX*password* %n\n *password:*all*authentication*tokens*updated*successfully*
username map = /etc/samba/smbusers
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
interfaces = eth0
local master = no
domain master = no
preferred master = no
name resolve order = dns host lmhosts bcast
wins server = “IP.ADDRESS”
preserve case = yes
short preserve case = yes
default case = lower
case sensitive = no
allow trusted domains = yes
#=============== Share Definitions ====================
winbind separator = +
winbind uid = 10000-20000
winbind gid = 10000-20000
winbind cache time = 15
winbind enum users = yes
winbind enum groups = yes
template homedir = /home/%U
template shell = /bin/bash
winbind use default domain = yes
[Homes]

comment = Home Directories
browseable = yes
writeable = yes
valid users = %S
create mode = 0775

That is it on the RedHat box now comes the part that everybody leaves out – STUPID

Make sure you do have the following available to you.
DHCP, WINS, DNS (I have these things installed onto one Win2k + Small business server machine)

<START><Programs><Administrative Tools>

DHCP **Active**
DNS: Forward and Reverse Lookup Zones (Folders)
WINS: Active Registrations Replication Partners (Folders)

Now when that is all done and dandy on the RedHat box do the following:
Service smb status – It must be stopped if not stop it.
Service winbind status - It must be stopped if not stop it.
Net rpc join –S “Servername.Domain” –U Administrator
Password: **********
It sould say you have joined your domain
Now start your smb and winbind services
Wbinfo –t – Checking the trust secret via RPC calls succeeded
Wbinfo –u – List of users on server
Wbinfo –g – List of groups on server

There you have it and if this does not work for you I WILL EAT MY SHOES unless you made a dumb mistake.

HAVE FUN EVERYONE  :lol:

Offline dragoncity99

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 551
Winbind on fedora core 2 SOLVED
« Reply #1 on: July 27, 2004, 03:23:21 PM »
Wow, that's cool. Are u doing samba PDC here?

Offline waynefourie

  • Linux Noob !
  • *
  • Posts: 7
Winbind on fedora core 2 SOLVED
« Reply #2 on: July 28, 2004, 08:38:36 AM »
YEP I believe so... Seeing that i am "new" (And i mean new...) to this this is a bloody achievement for me ... SO "PAT" on the back for me and i am happy.

The only thing i do want to know is... WHY DO ALL THESE SO CALLED LINUX HELPERS not helping.

But my project is done and i am  :D (Colgate)

So if there is anything anybody needs to know... Finer detail to what i did do not hesitate to bug me.

 8)  :lol:

Offline dragoncity99

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 551
Winbind on fedora core 2 SOLVED
« Reply #3 on: July 30, 2004, 05:57:04 AM »
Yes, bravo and well done man. Keep up the good work. :)

A bit PAT on the u got from me :)

It's really nice things to do with this SAMBA PDC.
SO have u tried on the print sharing for this new baby?