[Samba] smbd fails to start - rpc_srv_register: Failed to call the svcctl init function!

Andrew Bartlett abartlet at samba.org
Fri Sep 7 16:34:45 MDT 2012


On Fri, 2012-09-07 at 10:45 -0700, Scott Classen wrote:
> On Sep 6, 2012, at 8:14 PM, Andrew Bartlett wrote:
> 
> > On Thu, 2012-09-06 at 12:21 -0700, Scott Classen wrote:
> >> 
> >> I am attempting to upgrade from the samba version distributed with =
> >> CentOS 5 to the latest stable samba release
> >> 
> >> CentOS version is 3.0.33
> >> 
> >> I removed the distro version and then:
> >> 
> >> cd /usr/local/src
> >> wget http://www.samba.org/samba/ftp/stable/samba-3.6.7.tar.gz
> >> tar -zxvf samba-3.6.7.tar.gz
> >> cd samba-3.6.7/source3
> >> ./configure --with-configdir=3D/etc/samba
> >> make
> >> make install
> >> 
> >> I am using my original smb.conf file which has some deprecated options, =
> >> but still passed the testparm test
> > 
> > Given you have such major failure, stripping back the smb.conf to
> > exactly what you need would be a good start.  Specifically give
> > attention to 'unix charset'.
> > 
> > Andrew Bartlett
> 
> I deleted the line:
> 
> unix charset = LOCALE
> 
> from the [global] sections and now smb starts. This is a good first step. yeah!
> 
> I fixed the deprecated idmap settings so my smb.conf file passes muster.
> 
> smb now seems to be having problems connecting to openldap. Here are the steps I've taken so far:
> 
> # copy over slightly newer ldap samab.schema file
> cp ../examples/LDAP/samba.schema /usr/local/etc/openldap/schema/samba.schema
> 
> # restart openldap
> /etc/init./slapd restart
> 
> # copy over a useful ldap.conf file as it appears smb is looking in /usr/local/etc/openldap
> cp /etc/openldap/ldap.conf /usr/local/etc/openldap/ldap.conf
> 
> # store password for samba_server in secrets.tdb
> smbpasswd -w mysoopersecretpassword

> fetch_ldap_pw: neither ldap secret retrieved!
> ldap_connect_system: Failed to retrieve password from secrets.tdb

My guess is that you are running the wrong 'smbpasswd' binary, and it
isn't setting it in the the right tdb. 

> # The various ldap_url and ldap_init values above look completely wrong. Particularly "ldap_url_parse_ext(ldap://localhost/)" 
> # I'm not sure where those are coming from since my various ldap.conf files are all set up properly.

Samba doesn't use ldap.conf.  The url is part of the passdb backend
line.

Andrew Bartlett

-- 
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org




More information about the samba mailing list