Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
smbpasswd -a user PROBLEM
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
neptunus10000
n00b
n00b


Joined: 05 Dec 2003
Posts: 9

PostPosted: Mon Dec 08, 2003 7:34 pm    Post subject: smbpasswd -a user PROBLEM Reply with quote

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
View user's profile Send private message
NiklasH
Apprentice
Apprentice


Joined: 30 Aug 2002
Posts: 211
Location: On top of something

PostPosted: Mon Dec 08, 2003 9:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
neptunus10000
n00b
n00b


Joined: 05 Dec 2003
Posts: 9

PostPosted: Mon Dec 08, 2003 9:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
NiklasH
Apprentice
Apprentice


Joined: 30 Aug 2002
Posts: 211
Location: On top of something

PostPosted: Mon Dec 08, 2003 9:19 pm    Post subject: Reply with quote

Just write
Code:
ACCEPT_KEYWORDS="~x86" emerge samba
Back to top
View user's profile Send private message
compuboy86
Tux's lil' helper
Tux's lil' helper


Joined: 03 Apr 2003
Posts: 79

PostPosted: Tue Dec 09, 2003 4:39 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum