Author Topic: First line of LDIF entry does not begin with  (Read 1190 times)

alexandrefett

  • Zen Apprentice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
First line of LDIF entry does not begin with
« on: April 11, 2014, 02:34:23 pm »
Need help with this issue...


014/04/11 08:56:02 ERROR> Service.pm:999 EBox::Module::Service::restartService - Error restarting service: Can't locate object$
" (perhaps you forgot to load "First line of LDIF entry does not begin with "dn:" at /usr/share/perl5/EBox/LDB.pm line 824
"?) at /usr/share/perl5/EBox/Module/Base.pm line 238.
" (perhaps you forgot to load "Can't locate object method "throw" via package "First line of LDIF entry does not begin with "dn$
" (perhaps you forgot to load "First line of LDIF entry does not begin with "dn:" at /usr/share/perl5/EBox/LDB.pm line 824
"?) at /usr/share/perl5/EBox/Module/Base.pm line 238.
"?) at /usr/share/perl5/EBox/Samba/Provision.pm line 1482, <GEN0> line 375.
2014/04/11 08:56:02 ERROR> Service.pm:1001 EBox::Module::Service::restartService - Can't locate object method "throw" via packa$
2014/04/11 08:56:02 ERROR> RestartService.pm:61 EBox::SysInfo::CGI::RestartService::_process - Restart of File Sharing and Doma$
" (perhaps you forgot to load "First line of LDIF entry does not begin with "dn:" at /usr/share/perl5/EBox/LDB.pm line 824
"?) at /usr/share/perl5/EBox/Module/Base.pm line 238.
" (perhaps you forgot to load "Can't locate object method "throw" via package "First line of LDIF entry does not begin with "dn$
" (perhaps you forgot to load "First line of LDIF entry does not begin with "dn:" at /usr/share/perl5/EBox/LDB.pm line 824
"?) at /usr/share/perl5/EBox/Module/Base.pm line 238.
"?) at /usr/share/perl5/EBox/Samba/Provision.pm line 1482, <GEN0> line 375.

jbahillo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1444
  • Karma: +77/-2
    • View Profile
Re: First line of LDIF entry does not begin with
« Reply #1 on: April 11, 2014, 02:38:55 pm »
Hello:

Make sure if you have customized anything of the smb.conf that it is a valid config (you might use testparm for this).

I've seen this error in some occasion in which a not valid config key for smb.conf was included


BR

alexandrefett

  • Zen Apprentice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: First line of LDIF entry does not begin with
« Reply #2 on: April 11, 2014, 07:12:53 pm »
What can be wrong?

[global]
   workgroup = EVEREST
   realm = EVEREST.LOCAL
   server string = Zentyal Server
   server role = active directory domain controller
   passdb backend = samba_dsdb
   log file = /var/log/samba/samba.log
   server signing = if_required
   load printers = No
   printcap name = /dev/null
   disable spoolss = Yes
   show add printer wizard = No
   server services = s3fs, rpc, wrepl, ldap, cldap, kdc, drepl, winbind, ntp_signd, kcc, dnsupdate
   rpc_server:tcpip = no
   rpc_daemon:spoolssd = embedded
   rpc_server:spoolss = embedded
   rpc_server:winreg = embedded
   rpc_server:ntsvcs = embedded
   rpc_server:eventlog = embedded
   rpc_server:srvsvc = embedded
   rpc_server:svcctl = embedded
   rpc_server:default = external
   server role check:inhibit = yes
   idmap config * : backend = tdb
   map archive = No
   map readonly = no
   store dos attributes = Yes
   vfs objects = dfs_samba4, acl_xattr

[netlogon]
   path = /var/lib/samba/sysvol/everest.local/scripts
   browseable = No

[sysvol]
   path = /var/lib/samba/sysvol
   read only = No

[homes]
   comment = Home Directories
   path = /home/%S
   read only = No
   create mask = 0611
   directory mask = 0711
   browseable = No
   vfs objects = acl_xattr, full_audit
   full_audit:failure = connect opendir disconnect unlink mkdir rmdir open rename
   full_audit:success = connect opendir disconnect unlink mkdir rmdir open rename

jbahillo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1444
  • Karma: +77/-2
    • View Profile
Re: First line of LDIF entry does not begin with
« Reply #3 on: April 11, 2014, 07:29:06 pm »
Have you tried to run restart or slapcat?

alexandrefett

  • Zen Apprentice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: First line of LDIF entry does not begin with
« Reply #4 on: April 11, 2014, 08:52:39 pm »
Restart not working and slapcat look ok

dn: dc=everest,dc=local
objectClass: organization
objectClass: dcObject
objectClass: top
dc: everest
o: everest
structuralObjectClass: organization
entryUUID: fe7cf2f6-551c-1033-9f64-d71873ee5ad9
creatorsName: cn=zentyal,dc=everest,dc=local
createTimestamp: 20140410165750Z
entryCSN: 20140410165750.429015Z#000000#000#000000
modifiersName: cn=zentyal,dc=everest,dc=local
modifyTimestamp: 20140410165750Z

jbahillo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1444
  • Karma: +77/-2
    • View Profile
Re: First line of LDIF entry does not begin with
« Reply #5 on: April 11, 2014, 10:11:54 pm »
and ldbsearch -H /opt/samba4/private/sam.ldb ?