Unable To Share Files in SUSE 11.3 + Samba

My server info:
SUSE 11.3 , authenticated against LDAP, I am able to log in using LDAP credentials.
I did run smbpasswd -w password

After I configured the smb.conf file, I try to do this on the Terminal to make sure it will work in Windows machines but I got this error:

user@mybox:~> smbclient -L mybox.mydomain.com
Enter user’s password: (I enter the user password here)
Connection to mybox.mydomain.com failed (Error NT_STATUS_CONNECTION_REFUSED)

so I went to /var/log/samba.log to check the error file, I got this :
**
Connection to LDAP server failed for the 1 try!
[2010/12/10 18:08:50.919813, 1] lib/smbldap.c:1330(another_ldap_try)
Connection to LDAP server failed for the 2 try!
[2010/12/10 18:08:52.133624, 1] lib/smbldap.c:1330(another_ldap_try)
Connection to LDAP server failed for the 3 try!**

and it kept going on and on until I stop it.

Here is my smb.conf file, please take a look to see what I’ve done wrong here. I tried to to take out WORKGROUP in GLOBAL but there were error like " Work group name x.x.x.com is too long, so I put in WORKGROUP = etc.

*[global]
workgroup = mybox
passdb backend = ldapsam:ldap://ldap.my domain.com:11389/
ldap suffix = dc=my domain,dc=com
name resolve order = wins bcast hosts
ldap machine suffix = ou=Computers
ldap user suffix = ou=People
ldap group suffix = ou=Groups
ldap admin dn = “cn=sambaLabs2,ou=roles,dc=domain name,dc=com”
ldap ssl = start tls
server string = “my File Server”
security = user
log file = /var/log/samba.log
log level = 1
Max log size = 50
wins support = yes
wins server = my wins servers here
winbind enum users = no
winbind enum groups = no
unix extensions = no
wide links = yes
hosts deny = ALL
hosts allow = 192.168.
interfaces = lo eth0
bind interfaces only = true
browseable = No
read only = No
usershare allow guests = No

    load printers = yes
    printing = cups
    printcap name = cups
    printcap cache time = 750
    cups options = raw
    map to guest = Bad User

[homes]
comment = home directories
browseable = No
valid users = %S
read only = No
writable = yes
create mask = 0660
directory mask = 0770
inherit acls = Yes
inherit permissions = yes
[sharefolder]
path = /sharefolder
valid users = @users,%S
inherit acls = Yes
inherit permissions = yes

[printers]
path = /var/spool/samba
browsable = no
public = yes

[print$]
comment = Printer Drivers
path = /etc/samba/drivers
browsable = yes
guest ok = no
read only = yes
write list = root
force group = ntadmin
create mask = 0664
directory mask = 0775*

Thank you in advance.

Hi,

it isn’t really mydomain.com since this leads to an existing domain in the internet?

Another idea: Are the clocks of the machines synchronized?

Bye

Erik

Hi
If you use YaST LDAP Browser, can you just check your ou entries are
Capitalized.


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (i586) Kernel 2.6.32.24-0.2-pae
up 0:13, 2 users, load average: 0.03, 0.08, 0.09
ASUS eeePC 1000HE ATOM N280 1.66GHz | GPU Mobile 945GM/GMS/GME

I modified the domain because I dont want it to be seen by public.
How can I tell if the clock is synced between machines?

Thank you.

I checked and the ou are lower cases.

After fixing a few things, I try smbclient -L mybox.mydomain.com again, this time I got this error.

**[2010/12/12 19:24:00.556762, 0] passdb/secrets.c:806(fetch_ldap_pw)
fetch_ldap_pw: neither ldap secret retrieved!
[2010/12/12 19:24:00.556909, 0] lib/smbldap.c:1107(smbldap_connect_system)
ldap_connect_system: Failed to retrieve password from secrets.tdb
**
I googled around and people said the LDAP Admin Password must be coded to the secrets.dtb by doing sambapasswd -W LdapAdminPass .
Is that really necessary ?

On Sun December 12 2010 06:36 pm, prayingtosky wrote:

>
> After fixing a few things, I try smbclient -L mybox.mydomain.com again,
> this time I got this error.
>
> *[2010/12/12 19:24:00.556762, 0] passdb/secrets.c:806(fetch_ldap_pw)
> fetch_ldap_pw: neither ldap secret retrieved!
> [2010/12/12 19:24:00.556909, 0]
> lib/smbldap.c:1107(smbldap_connect_system)
> ldap_connect_system: Failed to retrieve password from secrets.tdb
> *
> I googled around and people said the LDAP Admin Password must be coded
> to the secrets.dtb by doing sambapasswd -W LdapAdminPass .
> Is that really necessary ?
>
>
prayingtosky;

In your first post, you said you ran “smbpasswd -w password”. Who’s password
was entered?
See: man smbpasswd for the difference between -w and -W. It might also help
for you to see the note at the end of the section “Initialize the LDAP
Database” in the Official HowTo:
http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/passdb.html#id2593073

P. V.
“We’re all in this together, I’m pulling for you.” Red Green