LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-24-2004, 08:02 PM   #1
wslyhbb
Member
 
Registered: Apr 2002
Location: Chicago, IL
Distribution: Mandriva 2009.0 PowerPack x86_64
Posts: 150

Rep: Reputation: 15
Samba and LDAP


Ok, so I set up my LDAP, put my people and groups in it, and then told my Samba 3 to look towards my LDAP for the user accounts. However, it does not seem to find my samba users and when I try to add one it does not seem to work (in the KDE Samba Configuration snap-in the user does not appear in the Samba user list, and I try to add it from the Unix user list, but it will not allow me to Apply it and if I go from the Samba Configuration and back it is no longer there). Also, if I connect to a share using the Computer Management Console in Windows XP and try to add a user (as my Samba3 How-To guide book instructed), I try to add WSLYHBB\whobbie (the account that has Samba attributes set in my LDAP server), it says does not exist.
Here is my samba.conf file:
# Samba config file created using SWAT
# from localhost (127.0.0.1)
# Date: 2004/06/24 19:51:19

# Global parameters
[global]
workgroup = PERSONALPC
netbios aliases = wslyhbb
server string = Wes' Computer
map to guest = Bad User
smb passwd file =
passdb backend = ldapsam:ldap://wslyhbb.personal-pc.com
passwd program = /etc/passwd
unix password sync = Yes
client plaintext auth = No
log file = /var/log/samba/log.%m
max log size = 50
server signing = auto
socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
hostname lookups = Yes
load printers = No
printcap name = cups
add user script = /usr/share/samba/scripts/smbldap-useradd -m
delete user script = /usr/share/samba/scripts/smbldap-userdel
add group script = /usr/share/samba/scripts/smbldap-groupadd -p
delete group script = /usr/share/samba/scripts/smbldap-groupdel
add user to group script = /usr/share/samba/scripts/smbldap-groupmod -m
delete user from group script = /usr/share/samba/scripts/smbldap-groupmod -x
set primary group script = /usr/share/samba/scripts/smbldap-groupadd -p
add machine script = /usr/share/samba/scripts/smbldap-useradd -w
preferred master = No
domain master = No
ldap suffix = dc=personal-pc,dc=com
ldap machine suffix = ou=Computers
ldap user suffix = ou=People
ldap group suffix = ou=Group
ldap admin dn = cn=Manager,dc=personal-pc,dc=com
ldap ssl = no
ldap passwd sync = Yes
idmap backend = ldapsam:ldap://wslyhbb.personal-pc.com
idmap uid = 500-20000
idmap gid = 500-20000
printer admin = @adm
guest ok = Yes
printing = cups

[homes]
comment = Home Directories
read only = No
browseable = No

Can anyone direct me in the correct direction of fixing my problem?
 
Old 06-27-2004, 03:04 PM   #2
wslyhbb
Member
 
Registered: Apr 2002
Location: Chicago, IL
Distribution: Mandriva 2009.0 PowerPack x86_64
Posts: 150

Original Poster
Rep: Reputation: 15
Winbind

Actually, by reading the log files, I realized the uids and gids were conflicting, so I increased them to:
idmap uid = 1000-20000
idmap gid = 1000-20000

Also, I realized that somehow my workgroup name and the actual sambaDomainName were not the same and needed to be so I changed the workgroup to WSLYHBB as well. I would like to change them both to PERSONALPC but when I try changing the sambaDomainName entry in the LDAP server it then creates another one for WSLYHBB, so it must be set somewhere else but that is not as important right now.

I realized that winbind is not mapping the UIDs and GIDs to the SIDs correctly, it connects and disconnects right away claiming the user does not exist, although it does. I run 'wbinfo -u' and get "Error looking up domain users". What is wrong, why is this not working correctly? How can I fix it?
 
Old 06-28-2004, 09:51 AM   #3
phatboyz
Member
 
Registered: Feb 2004
Location: Mooresville NC
Distribution: CentOS 4,Free BSD,
Posts: 358

Rep: Reputation: 30
I can not help you, but I would like to know when you get this finished as I would like to do the samething.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba + LDAP PDC help!!!!!!!!!! shane200_ SUSE / openSUSE 1 08-14-2005 09:10 AM
Ldap+samba musfeq Linux - Software 4 08-08-2005 04:33 AM
Samba + LDAP shane200_ Linux - Networking 3 07-20-2005 02:47 PM
Samba or ldap amir_h Linux - Networking 4 03-27-2004 10:59 PM
Authen in LDAP with samba u4113072 Linux - Networking 1 06-25-2003 09:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration