[Samba] smbd fails to start - rpc_srv_register: Failed to call the svcctl init function!
Scott Classen
sclassen at lbl.gov
Fri Sep 7 11:45:31 MDT 2012
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
# attempt to start smb on command line
/usr/local/samba/sbin/smbd -i -d 2
# I also added debugging flag to smb.conf (ldap debug level = -1)
#here is output
smbd version 3.6.7 started.
Copyright Andrew Tridgell and the Samba Team 1992-2011
uid=0 gid=0 euid=0 egid=0
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
ldap_url_parse_ext(ldap://localhost/)
ldap_init: trying /usr/local/etc/openldap/ldap.conf
ldap_init: using /usr/local/etc/openldap/ldap.conf
ldap_init: HOME env is /root
ldap_init: trying /root/ldaprc
ldap_init: trying /root/.ldaprc
ldap_init: trying ldaprc
ldap_init: LDAPCONF env is NULL
ldap_init: LDAPRC env is NULL
[snip…snip]
smbldap_search_domain_info: Searching for:[(&(objectClass=sambaDomain)(sambaDomainName=MYDOMAIN))]
smbldap_open_connection: connection opened
fetch_ldap_pw: neither ldap secret retrieved!
ldap_connect_system: Failed to retrieve password from secrets.tdb
Connection to LDAP server failed for the 1 try!
smbldap_open_connection: connection opened
fetch_ldap_pw: neither ldap secret retrieved!
ldap_connect_system: Failed to retrieve password from secrets.tdb
Connection to LDAP server failed for the 2 try!
smbldap_open_connection: connection opened
fetch_ldap_pw: neither ldap secret retrieved!
ldap_connect_system: Failed to retrieve password from secrets.tdb
Connection to LDAP server failed for the 3 try!
# 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.
# from slapd.log it appears that smb is connecting via TLS connection, but that's about it.
Sep 7 10:34:06 bl1231 slapd[28318]: conn=1130 fd=44 ACCEPT from IP=131.243.78.105:47723 (IP=0.0.0.0:389)
Sep 7 10:34:06 bl1231 slapd[28318]: conn=1130 op=0 EXT oid=1.3.6.1.4.1.1466.20037
Sep 7 10:34:06 bl1231 slapd[28318]: conn=1130 op=0 STARTTLS
Sep 7 10:34:06 bl1231 slapd[28318]: conn=1130 op=0 RESULT oid= err=0 text=
Sep 7 10:34:06 bl1231 slapd[28318]: conn=1130 fd=44 TLS established tls_ssf=256 ssf=256
Sep 7 10:34:06 bl1231 slapd[28318]: conn=1130 op=1 UNBIND
Sep 7 10:34:06 bl1231 slapd[28318]: conn=1130 fd=44 closed
Regards.
More information about the samba
mailing list