Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
smbpasswd suddenly thinks it needs LDAP :-(
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
Klavs
Guru
Guru


Joined: 22 May 2002
Posts: 536
Location: Denmark

PostPosted: Wed Dec 04, 2002 2:33 pm    Post subject: smbpasswd suddenly thinks it needs LDAP :-( Reply with quote

Hi guys,

I just tried to change my smbpasswd and I got this output:

smbpasswd klavs
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
Failed to find entry for user klavs.
Failed to modify password entry for user klavs

what the hell is happening here? how did it got setup to auth via ldap?
I see no evidence of this in smb.conf or anywhere else.
I just know that I've installed openldap and pam_ldap - but that shouldn't mean that samba suddenly decides to auth via that?

Any help will be appreciated.
_________________
Best regards,

Klavs Klavsen
Denmark

Working with Unix is like wrestling a worthy opponent.
Working with windows is like attacking a small whining child
who is carrying a .38.
Back to top
View user's profile Send private message
lx
Veteran
Veteran


Joined: 28 May 2002
Posts: 1012
Location: Netherlands

PostPosted: Wed Dec 04, 2002 2:38 pm    Post subject: Reply with quote

Obvious fix recompile samba, using
Code:
USE="-ldap" emerge samba
.

Cya lX.
_________________
"Remember there's a big difference between kneeling down and bending over.", Frank Zappa
Back to top
View user's profile Send private message
Klavs
Guru
Guru


Joined: 22 May 2002
Posts: 536
Location: Denmark

PostPosted: Wed Dec 04, 2002 2:50 pm    Post subject: Reply with quote

I know. but what if I wanted to be able to set it up for samba later on?

But thanks for the info.

anyways, I think I'm gonna have to do that until now :-(
_________________
Best regards,

Klavs Klavsen
Denmark

Working with Unix is like wrestling a worthy opponent.
Working with windows is like attacking a small whining child
who is carrying a .38.
Back to top
View user's profile Send private message
flickerfly
l33t
l33t


Joined: 08 Nov 2002
Posts: 677
Location: Lanham, MD

PostPosted: Thu Jan 30, 2003 3:37 pm    Post subject: Comment out LDAP lines Reply with quote

You should be able to just comment out the LDAP lines in /etc/samba, or it may have something to do with the pasword change script. That might have to be changed back to default, but I'm not sure what that would be or if it is even neccesary w/out LDAP.

A place to start anyway...

_JR
_________________
An Evil Genious' Guide to Sheeple and How To Avoid Becoming One | 0x4C9EF4A
Back to top
View user's profile Send private message
Klavs
Guru
Guru


Joined: 22 May 2002
Posts: 536
Location: Denmark

PostPosted: Fri Jan 31, 2003 8:57 am    Post subject: Reply with quote

The weird thing was, that there wasn't any LDAP lines in /etc/samba/smb.conf - otherwise I would have disabled them. it simply defaulted to LDAP :(

Anyways, for now I have compiled it with USE="-LDAP".
_________________
Best regards,

Klavs Klavsen
Denmark

Working with Unix is like wrestling a worthy opponent.
Working with windows is like attacking a small whining child
who is carrying a .38.
Back to top
View user's profile Send private message
Nightweaver
n00b
n00b


Joined: 24 Jul 2002
Posts: 40

PostPosted: Fri Jan 31, 2003 10:45 am    Post subject: Reply with quote

I had this problem, too ... I didn't have LDAP in either /etc/make.conf or the other one (that you aren't meant to change), and I *still* had to explicitly say 'USE="-ldap"' to install Samba.
_________________
My mummy says I'm l33t.
Back to top
View user's profile Send private message
flickerfly
l33t
l33t


Joined: 08 Nov 2002
Posts: 677
Location: Lanham, MD

PostPosted: Fri Jan 31, 2003 2:23 pm    Post subject: Who do we notify Reply with quote

[quote="Nightweaver"]I had this problem, too ... I didn't have LDAP in either /etc/make.conf or the other one (that you aren't meant to change), and I *still* had to explicitly say 'USE="-ldap"' to install Samba.[/quote]

Anybody post a bug for it yet?
_________________
An Evil Genious' Guide to Sheeple and How To Avoid Becoming One | 0x4C9EF4A
Back to top
View user's profile Send private message
flickerfly
l33t
l33t


Joined: 08 Nov 2002
Posts: 677
Location: Lanham, MD

PostPosted: Fri Jan 31, 2003 2:35 pm    Post subject: Bug Submitted Reply with quote

I couldn't find a bug on this so I submitted it. If you want to watch it or add some insight its Bug 14854, @ https://bugs.gentoo.org/show_bug.cgi?id=14854.
_________________
An Evil Genious' Guide to Sheeple and How To Avoid Becoming One | 0x4C9EF4A
Back to top
View user's profile Send private message
Carlo
Developer
Developer


Joined: 12 Aug 2002
Posts: 3356

PostPosted: Sat Feb 01, 2003 1:16 am    Post subject: Reply with quote

I experienced the same problem. While I recompiled samba, I looked at smb.conf and didn't found an entry like this: smb passwd file = /etc/samba/smbpasswd.

Maybe that's the reason why samba expects a ldap server?


Carlo
Back to top
View user's profile Send private message
Klavs
Guru
Guru


Joined: 22 May 2002
Posts: 536
Location: Denmark

PostPosted: Mon Feb 03, 2003 9:37 am    Post subject: Reply with quote

Quote:
I experienced the same problem. While I recompiled samba, I looked at smb.conf and didn't found an entry like this: smb passwd file = /etc/samba/smbpasswd.

Maybe that's the reason why samba expects a ldap server?


Did you try it? I just did, and smbpasswd gives me the exact same error message - and btw. I had smb passwd file = /etc/samba/smbpasswd in my /etc/samba/smb.conf all the time.

So no go on that one :) I'm reinstalling my old samba again - thank god for pacakges.
_________________
Best regards,

Klavs Klavsen
Denmark

Working with Unix is like wrestling a worthy opponent.
Working with windows is like attacking a small whining child
who is carrying a .38.
Back to top
View user's profile Send private message
Carlo
Developer
Developer


Joined: 12 Aug 2002
Posts: 3356

PostPosted: Mon Feb 03, 2003 3:55 pm    Post subject: Reply with quote

Klavs wrote:
Did you try it?


No - it was just an idea I had while recompiling samba with negated ldap use flag. I was to lazy to check this assumtion. Sorry. :wink:


Carlo
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