View previous topic :: View next topic |
Author |
Message |
neptunus10000 n00b
Joined: 05 Dec 2003 Posts: 9
|
Posted: Mon Dec 08, 2003 7:34 pm Post subject: smbpasswd -a user PROBLEM |
|
|
If I enter this command; smbpasswd -a user, I get a warning.
root@server samba # smbpasswd -a user
New SMB password:
Retype new SMB password:
LDAPS option set...!
fetch_ldap_pw: no ldap secret retrieved!
ldap_connect_system: Failed to retrieve password for from secrets.tdb
LDAPS option set...!
fetch_ldap_pw: no ldap secret retrieved!
ldap_connect_system: Failed to retrieve password for from secrets.tdb
Failed to add entry for user neptunus.
Failed to modify password entry for user neptunus
I just install samba with emerge samba, after the install I enter this command; rc-update add samba default .
After the reboot samba is working OK. I chanced the smb.conf.
#======================= Global Settings =====================================
[global]
interfaces = eth0
workgroup = NEPWORK
server string = FileServer
hosts allow = 192.168.1. 127.
log file = /var/log/samba/%m.log
max log size = 5
security = user
# password level = 10
# username level = 10
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
username map = /etc/samba/smbusers
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
os level = 65
#============================ Share Definitions ==============================
[Share]
comment = Share
path = /warez/
public = yes
writeable = yes
create mode = 0777
[Neptunus-Private]
comment = Neptunus
path = /share/neptunus/
valid users = neptunus
public = no
writeable = yes
It was not the meaning to install openLDAP. What can I do to get my samba servers working?
I just want to add some users and not using openLDAP. |
|
Back to top |
|
|
NiklasH Apprentice
Joined: 30 Aug 2002 Posts: 211 Location: On top of something
|
Posted: Mon Dec 08, 2003 9:09 pm Post subject: |
|
|
The current stable version of Samba seems to insist on using LDAP for authentication. Merge the unstable version, and it should work. (It did for me, anyway) |
|
Back to top |
|
|
neptunus10000 n00b
Joined: 05 Dec 2003 Posts: 9
|
Posted: Mon Dec 08, 2003 9:16 pm Post subject: |
|
|
NiklasH wrote: | The current stable version of Samba seems to insist on using LDAP for authentication. Merge the unstable version, and it should work. (It did for me, anyway) |
Is it possible that you explain how to Merge the unstable version? Do you mean by installing the new samba a older version ? |
|
Back to top |
|
|
NiklasH Apprentice
Joined: 30 Aug 2002 Posts: 211 Location: On top of something
|
Posted: Mon Dec 08, 2003 9:19 pm Post subject: |
|
|
Just write Code: | ACCEPT_KEYWORDS="~x86" emerge samba |
|
|
Back to top |
|
|
compuboy86 Tux's lil' helper
Joined: 03 Apr 2003 Posts: 79
|
Posted: Tue Dec 09, 2003 4:39 am Post subject: |
|
|
The problem is that you are using the "ldap" use flag. The solution:
Code: | emerge -C samba
USE="-ldap" emerge samba |
Hope this helps |
|
Back to top |
|
|
|