You are not logged in.

#1 2013-06-13 14:03:46

netawater
Member
Registered: 2008-08-01
Posts: 36

[SOLVED]samba.service can not be started

I just run pacman -Syu today, and found the samba servcie is broken.

[root@myserver /]# systemctl status samba
samba.service - Samba AD Daemon
   Loaded: loaded (/usr/lib/systemd/system/samba.service; disabled)
   Active: failed (Result: exit-code) since Thu 2013-06-13 19:54:04 CST; 2h 2min ago
  Process: 1293 ExecStart=/usr/bin/samba $SAMBAOPTIONS (code=exited, status=0/SUCCESS)
 Main PID: 1294 (code=exited, status=1/FAILURE)
   CGroup: name=systemd:/system/samba.service

Jun 13 19:54:03 myserver systemd[1]: PID file /var/run/samba.pid not readable (yet?) after start.
Jun 13 19:54:03 myserver systemd[1]: Started Samba AD Daemon.
Jun 13 19:54:03 myserver samba[1294]: ldapdb_canonuser_plug_init() failed in sasl_canonuser_ad...lied
Jun 13 19:54:03 myserver samba[1294]: _sasl_plugin_load failed on sasl_canonuser_init for plug...apdb
Jun 13 19:54:04 myserver systemd[1]: samba.service: main process exited, code=exited, status=1...LURE
Jun 13 19:54:04 myserver systemd[1]: Unit samba.service entered failed state.

my software version is

[root@myserver /]# pacman -Qi samba
Name           : samba
Version        : 4.0.6-1
Description    : SMB Fileserver and AD Domain server
Architecture   : i686
URL            : http://www.samba.org
Licenses       : GPL3
Groups         : None
Provides       : None
Depends On     : db>=4.7  popt  libcups  libcap>=2.16  gamin  gnutls>=2.4.1  talloc  ldb  libbsd
                 python2  tdb  smbclient>=4.0.6
Optional Deps  : None
Required By    : None
Optional For   : None
Conflicts With : None
Replaces       : None
Installed Size : 30411.00 KiB
Packager       : Tobias Powalowski <tpowa@archlinux.org>
Build Date     : Fri 24 May 2013 05:25:56 PM CST
Install Date   : Thu 06 Jun 2013 01:04:20 PM CST
Install Reason : Explicitly installed
Install Script : Yes
Validated By   : Signature

[root@myserver /]# pacman -Qi libsasl
Name           : libsasl
Version        : 2.1.26-4
Description    : Cyrus Simple Authentication Service Layer (SASL) Library
Architecture   : i686
URL            : http://cyrusimap.web.cmu.edu/
Licenses       : custom
Groups         : None
Provides       : None
Depends On     : openssl
Optional Deps  : None
Required By    : cyrus-sasl-gssapi  cyrus-sasl-ldap  cyrus-sasl-sql  libldap  libpurple  libvirt
                 mutt  qemu
Optional For   : None
Conflicts With : cyrus-sasl-plugins
Replaces       : None
Installed Size : 517.00 KiB
Packager       : Eric Belanger <eric@archlinux.org>
Build Date     : Fri 31 May 2013 04:13:53 AM CST
Install Date   : Thu 13 Jun 2013 01:43:47 PM CST
Install Reason : Installed as a dependency for another package
Install Script : No
Validated By   : Signature

thanks in advance!

Last edited by netawater (2013-06-14 01:18:38)

Offline

#2 2013-06-13 14:15:17

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED]samba.service can not be started

Are you trying to use samba, or are you trying to use smbd?  That is are you trying to create a simple file serving setup, or are you trying to use the whole M$ Active Directory stuff and whatnot?  The Active Directory stuff was just implemented in v4.* so I am kind of thinking that you are trying to start the wrong service.  If you want things like they were in version <=3.*, then you need to reconfigure smbd with the new config file/example, then re-add all users (pdbedit I think?), then start smbd and nmbd.

If you are indeed trying to be the Domain Controller and use Active Directory... you're gonna have to start doing some research.

Offline

#3 2013-06-14 01:18:18

netawater
Member
Registered: 2008-08-01
Posts: 36

Re: [SOLVED]samba.service can not be started

WonderWoofy wrote:

Are you trying to use samba, or are you trying to use smbd?  That is are you trying to create a simple file serving setup, or are you trying to use the whole M$ Active Directory stuff and whatnot?  The Active Directory stuff was just implemented in v4.* so I am kind of thinking that you are trying to start the wrong service.  If you want things like they were in version <=3.*, then you need to reconfigure smbd with the new config file/example, then re-add all users (pdbedit I think?), then start smbd and nmbd.

If you are indeed trying to be the Domain Controller and use Active Directory... you're gonna have to start doing some research.

thanks very much! smbd service is enough for me, and it works!

Offline

Board footer

Powered by FluxBB