[Samba] samba-tool domain classicupgrade smb_krb5_context_init_basic failed (Invalid argument)

316 views
Skip to first unread message

Tom Robinson via samba

unread,
Feb 7, 2017, 12:20:02 AM2/7/17
to
Hi,

I'm having trouble with the classic upgrade. We have three samba servers:

Server1: CentOS 5/Samba 3.6 (with smbldap-tools)
Server2: CentOS 6/Samba Version 4.2.14-SerNet-RedHat-23.el6
Server3: CentOS 7/Samba Version 4.2.14-SerNet-RedHat-23.el7

Server 1: CentOS 5/Samba 3.6 (with smbldap-tools)
Serves our OpenLDAP backend for centralised authentication (LDAP replicated to two other servers for
redundancy) and hosts all our Shares.

Server 2: CentOS 6/Samba Version 4.2.14-SerNet-RedHat-23.el6
Provisioned as an AD domain (samba-tool domain provision). This was not done as a classicupgrade but
was meant to eventually take over the roll of the Server1. Currently it serves our DNS using the
BIND9_DLZ plugin.

Server3: CentOS 7/Samba Version 4.2.14-SerNet-RedHat-23.el7
We're now looking to move to a domain and I thought I may as well test the classicupgrade on CentOS
using the same version of sernet as on Server 2 but there's an issue.

# samba-tool domain classicupgrade --debuglevel=3 --dbdir /var/lib/samba/bentley/ --use-xattrs=yes
--realm=mrc.motec.com.au --dns-backend=BIND9_DLZ /etc/samba/smb.bentley.conf
Reading smb.conf
lp_load_ex: refreshing parameters
Initialising global parameters
...
---8<---
...
Next rid = 13001
krb5_init_context failed (Invalid argument)
smb_krb5_context_init_basic failed (Invalid argument)
#

Is this a CentOS 6/7 difference issue or is the classicupgrade broken for Samba Version
4.2.14-SerNet? Any help is appreciated.

Kind regards,
Tom

--

Tom Robinson
IT Manager/System Administrator

MoTeC Pty Ltd

121 Merrindale Drive
Croydon South
3136 Victoria
Australia

T: +61 3 9761 5050
F: +61 3 9761 5051
E: tom.ro...@motec.com.au


signature.asc

Andrew Bartlett via samba

unread,
Feb 7, 2017, 1:10:02 AM2/7/17
to
On Tue, 2017-02-07 at 15:58 +1100, Tom Robinson via samba wrote:
> Hi,
> \
> Next rid = 13001
> krb5_init_context failed (Invalid argument)
> smb_krb5_context_init_basic failed (Invalid argument)
> #
>
> Is this a CentOS 6/7 difference issue or is the classicupgrade broken
> for Samba Version
> 4.2.14-SerNet? Any help is appreciated.

Remove the include lines from the krb5.conf, our internal Heimdal
doesn't understand them.

--
Andrew Bartlett http://samba.org/~abartlet/
Authentication Developer, Samba Team http://samba.org
Samba Developer, Catalyst IT http://catalyst.net.nz/services/samba


--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba

Tom Robinson via samba

unread,
Feb 7, 2017, 5:50:03 AM2/7/17
to
On 07/02/17 17:01, Andrew Bartlett via samba wrote:
> On Tue, 2017-02-07 at 15:58 +1100, Tom Robinson via samba wrote:
>> Hi,
>> \
>> Next rid = 13001
>> krb5_init_context failed (Invalid argument)
>> smb_krb5_context_init_basic failed (Invalid argument)
>> #
>>
>> Is this a CentOS 6/7 difference issue or is the classicupgrade broken
>> for Samba Version
>> 4.2.14-SerNet? Any help is appreciated.
>
> Remove the include lines from the krb5.conf, our internal Heimdal
> doesn't understand them.
>

Thanks Andrew. I've taken that line out but now I just get Segmentation
fault. :-/

I also took a more extreme step of moving /etc/krb5.conf and
/etc/krb5.conf.d out of /etc but samba-tool still seg faults.

Is it anything to do with the groups it's complaining about below?

# samba-tool domain classicupgrade --debuglevel=0 --dbdir
/var/lib/samba/bentley/ --use-xattrs=yes --realm=mrc.motec.com.au
--dns-backend=BIND9_DLZ /etc/samba/smb.bentley.conf
Reading smb.conf
Unknown parameter encountered: "share modes"
Ignoring unknown parameter "share modes"
Provisioning
Exporting account policy
Exporting groups
Ignoring group 'Administrators' S-1-5-32-544 listed but then not found:
Unable to enumerate members for alias, (-1073741487,The specified local
group does not exist.)
Ignoring group 'Account Operators' S-1-5-32-548 listed but then not
found: Unable to enumerate members for alias, (-1073741487,The specified
local group does not exist.)
Ignoring group 'Print Operators' S-1-5-32-550 listed but then not found:
Unable to enumerate members for alias, (-1073741487,The specified local
group does not exist.)
Ignoring group 'Backup Operators' S-1-5-32-551 listed but then not
found: Unable to enumerate members for alias, (-1073741487,The specified
local group does not exist.)
Ignoring group 'Replicators' S-1-5-32-552 listed but then not found:
Unable to enumerate members for alias, (-1073741487,The specified local
group does not exist.)
Exporting users
Skipping wellknown rid=500 (for username=root)
Next rid = 13001
Segmentation fault

signature.asc

Tom Robinson via samba

unread,
Feb 8, 2017, 7:00:03 PM2/8/17
to
Hmm, not sure where to go from here. Seems like this is not going to be fixed. Does anyone know if
the classiscupgrade in Version 4.2 also fail on CenOS 6?

That's not really what I want, though. What I want is an AD enabled samba version on CentOS/RHEL 7
using rpm packaging but it seems a difficult path to tread.

My preference is to manage software with RPMs. Perhaps I'm not looking hard enough or in the wrong
places; it appears that the available binary RPMs for CentOS/RHEL 7 all have AD disabled. Am I going
to be wasting my time trying to manually build the latest samba stable version on CentOS 7 with AD
enabled? Has anyone already done this successfully?



signature.asc

Andrew Bartlett via samba

unread,
Feb 8, 2017, 7:20:02 PM2/8/17
to
It should build and run fine on CentOS 7.

If it still gives you issues, then please send us the backtrace (either
to samba-technical or in a bug, this list will probably eat your
attachments). Make sure to CC me.

Thanks,

Andrew Bartlett
signature.asc

Tom Robinson via samba

unread,
Feb 9, 2017, 12:00:04 AM2/9/17
to

Tom Robinson
IT Manager/System Administrator

MoTeC Pty Ltd

121 Merrindale Drive
Croydon South
3136 Victoria
Australia

T: +61 3 9761 5050
F: +61 3 9761 5051
E: tom.ro...@motec.com.au

Thanks Andrew, much appreciated.

I've grabbed samba 4.5.4 and customised an existing rpm spec file. Still some issues there.

What replaces '--with-aio-support' in the configuration step now?

+ ./configure --enable-fhs --with-lockdir=/var/cache/samba --prefix=/usr --exec-prefix=/usr
--bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share
--includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var
--sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info
--with-pammodulesdir=/lib64/security --disable-rpath-install --bundled-libraries=ALL --enable-cups
--enable-gnutls --with-acl-support --with-aio-support --with-automount --with-pam --with-pam_smbpass
--without-profiling-data --with-quotas --with-syslog --with-utmp --with-winbind --with-ads
--with-dnsupdate --with-cluster-support --with-libarchive --without-dmapi
--with-shared-modules=vfs_audit,vfs_cap,vfs_catia,vfs_cacheprime,vfs_expand_msdfs,vfs_extd_audit,vfs_fake_perms,vfs_netatalk,vfs_recycle,vfs_streams_depot,vfs_aio_fork,vfs_snapper,vfs_gpfs,idmap_rid,idmap_autorid,idmap_rfc2307,idmap_ad,idmap_tdb2,idmap_hash
waf [command] [options]

Main commands (example: ./waf build -j4)
build : build all targets
clean : removes the build files
configure : configures the project
ctags : build 'tags' file using ctags
dist : makes a tarball for distribution
distcheck : test that distribution tarball builds and installs
distclean : removes the build directory
etags : build TAGS file using etags
install : installs the build files
pep8 : run pep8 validator
pydoctor : build python apidocs
reconfigure : reconfigure if config scripts have changed
test : Run the test suite (see test options below)
testonly : run tests without doing a build first
uninstall : removes the installed files
wafdocs : build wafsamba apidocs
wildcard_cmd: called on a unknown command

waf: error: no such option: --with-aio-support
error: Bad exit status from /var/tmp/rpm-tmp.QxZXtr (%build)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.QxZXtr (%build)


signature.asc

Tom Robinson via samba

unread,
Feb 9, 2017, 8:40:02 PM2/9/17
to
signature.asc

Rowland Penny via samba

unread,
Feb 11, 2017, 11:20:02 AM2/11/17
to
On Fri, 10 Feb 2017 12:34:23 +1100
Tom Robinson via samba <sa...@lists.samba.org> wrote:

>
> I've grabbed samba 4.5.4 and customised an existing rpm spec file.
> Still some issues there.
>
> What replaces '--with-aio-support' in the configuration step now?
>

As far as I can see, nothing, see the 4.4.0 release notes here:

https://www.samba.org/samba/history/samba-4.4.0.html

Rowland

Tom Robinson via samba

unread,
Feb 12, 2017, 6:10:03 PM2/12/17
to
On 12/02/17 03:13, Rowland Penny via samba wrote:
> On Fri, 10 Feb 2017 12:34:23 +1100
> Tom Robinson via samba <sa...@lists.samba.org> wrote:
>
>> I've grabbed samba 4.5.4 and customised an existing rpm spec file.
>> Still some issues there.
>>
>> What replaces '--with-aio-support' in the configuration step now?
>>
> As far as I can see, nothing, see the 4.4.0 release notes here:
>
> https://www.samba.org/samba/history/samba-4.4.0.html
>
> Rowland
>
Thanks Rowland.

Working through this build a few things have come up. The next is:

pam_smbpasswd

which appeared in the source (samba-4.3.13/source3/pam_smbpass) until samba-4.3.13 but I don't see
any recognisable notes about the change not to including it after that.

Any clues?


signature.asc

Andrew Bartlett via samba

unread,
Feb 12, 2017, 6:30:02 PM2/12/17
to
I'm sorry about the poor notice. It looks like I failed to ensure this
was mentioned in the WHATSNEW:

commit 3c00e8d76a2ef6194a8ce522c15853e5b8e9262b
Author: Andrew Bartlett <abar...@samba.org>
Date:   Sat Oct 10 08:45:41 2015 +1300

    pam_smbpass: REMOVE this PAM module
    
    This pam module causes GPLv3, thread-unsafe Samba code to be directly loaded
    into the address space of many system services.  The code in question was not
    expected to run in this context, and while using the Samba, rather than the system
    password file is a admirable goal, this needs to be done over inter-process
    communication, such as is done by pam_winbind.
    
    pam_winbind is not a total replacement, as the migrate functionality used
    to keep the Samba password up to date with the system password is not
    present, but otherwise can provide essentially the same services.
    
    Andrew Bartlett
    
    Signed-off-by: Andrew Bartlett <abar...@samba.org>
    Reviewed-by: Jeremy Allison <j...@samba.org>

Sorry,

Andrew Bartlett
signature.asc

Tom Robinson via samba

unread,
Feb 14, 2017, 10:50:03 PM2/14/17
to
No Worries, sorted now.

My next concern is codepages. The latest source (I've moved to 4.5.5 now) doesn't have any
codepages. The RPM spec file I'm customising lists and wants to install them here:

/usr/share/samba/codepages
/usr/share/samba/codepages/lowcase.dat
/usr/share/samba/codepages/upcase.dat
/usr/share/samba/codepages/valid.dat

Are there still codepages to be packaged?

Kind regards,
Tom


signature.asc

Tom Robinson via samba

unread,
Feb 15, 2017, 12:40:03 AM2/15/17
to
Still unsure about the codepages but I have managed to package samba 4.5.5.

I've installed my packaged samba 4.5.5 on CentOS 7 and tried the upgrade again.
Running the 'samba-tool domain classicupgrade' again fails with a silent SIGSEGV.

# samba-tool domain classicupgrade --verbose --debuglevel=0 --dbdir /var/lib/samba/bentley
--use-xattrs=yes --realm=mrc.motec.com.au --dns-backend=BIND9_DLZ /etc/samba/smb.bentley.conf 2>&1 |
tee /tmp/out9
Reading smb.conf
Provisioning
Exporting account policy
Exporting groups
Ignoring group 'Administrators' S-1-5-32-544 listed but then not found: Unable to enumerate members
for alias, (-1073741487,The specified local group does not exist.)
Ignoring group 'Account Operators' S-1-5-32-548 listed but then not found: Unable to enumerate
members for alias, (-1073741487,The specified local group does not exist.)
Ignoring group 'Print Operators' S-1-5-32-550 listed but then not found: Unable to enumerate members
for alias, (-1073741487,The specified local group does not exist.)
Ignoring group 'Backup Operators' S-1-5-32-551 listed but then not found: Unable to enumerate
members for alias, (-1073741487,The specified local group does not exist.)
Ignoring group 'Replicators' S-1-5-32-552 listed but then not found: Unable to enumerate members for
alias, (-1073741487,The specified local group does not exist.)
Exporting users
Skipping wellknown rid=500 (for username=root)
Next rid = 13001

SIGSEGV only shows when I use strace:

# strace samba-tool domain classicupgrade --verbose --debuglevel=0 --dbdir /var/lib/samba/bentley
--use-xattrs=yes --realm=mrc.motec.com.au --dns-backend=BIND9_DLZ /etc/samba/smb.bentley.conf 2>&1 |
tee /tmp/out10

# grep -e Next -e open -e SIGSEGV /tmp/out10
---8<--*snip*---8<---
open("/var/cache/samba/login_cache.tdb", O_RDWR|O_CREAT, 0644) = 10
write(2, "Next rid = 13001\n", 17Next rid = 13001
open("/root/.krb5/config", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/krb5.conf", O_RDONLY) = 11
open("/etc/samba/krb5.conf", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/root/.krb5/config", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/krb5.conf", O_RDONLY) = 11
open("/tmp/krb5cc_0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib64/samba/ldb", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 11
open("/usr/lib64/samba/ldb/acl.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib64/samba/libdsdb-module-samba4.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib64/samba/ldb/aclread.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib64/samba/ldb/anr.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib64/samba/ldb/asq.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib64/samba/ldb/descriptor.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib64/samba/ldb/dirsync.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib64/samba/ldb/dns_notify.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib64/samba/ldb/dsdb_notification.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib64/samba/ldb/extended_dn_in.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib64/samba/ldb/extended_dn_out.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib64/samba/ldb/extended_dn_store.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib64/samba/ldb/ildap.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib64/samba/ldb/instancetype.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib64/samba/ldb/lazy_commit.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib64/samba/ldb/ldbsamba_extensions.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib64/samba/libpopt-samba4.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib64/samba/ldb/linked_attributes.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib64/samba/ldb/local_password.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib64/samba/ldb/new_partition.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib64/samba/ldb/objectclass.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib64/samba/ldb/objectclass_attrs.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib64/samba/ldb/objectguid.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib64/samba/ldb/operational.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib64/samba/ldb/paged_results.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib64/samba/ldb/paged_searches.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib64/samba/ldb/partition.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib64/samba/ldb/password_hash.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib64/samba/libgpgme.so.11", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 11
open("/lib64/libgpgme.so.11", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib64/samba/libassuan.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/lib64/libassuan.so.0", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib64/samba/ldb/ranged_results.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib64/samba/ldb/rdn_name.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib64/samba/ldb/repl_meta_data.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib64/samba/ldb/resolve_oids.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib64/samba/ldb/rootdse.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib64/samba/ldb/samba3sam.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib64/samba/ldb/samba3sid.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib64/samba/ldb/samba_dsdb.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib64/samba/ldb/samba_secrets.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib64/samba/ldb/samldb.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib64/samba/ldb/sample.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib64/samba/ldb/schema_data.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib64/samba/ldb/schema_load.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib64/samba/ldb/secrets_tdb_sync.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib64/samba/ldb/server_sort.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib64/samba/ldb/show_deleted.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib64/samba/ldb/simple_dn.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib64/samba/ldb/simple_ldap_map.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib64/samba/ldb/skel.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib64/samba/ldb/subtree_delete.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib64/samba/ldb/subtree_rename.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib64/samba/ldb/tdb.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib64/samba/ldb/tombstone_reanimate.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib64/samba/ldb/update_keytab.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib64/samba/ldb/vlv.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib64/samba/ldb/wins_ldb.so", O_RDONLY|O_CLOEXEC) = 11
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x8} ---
+++ killed by SIGSEGV +++

# tail -16 /tmp/out10
open("/usr/lib64/samba/ldb/wins_ldb.so", O_RDONLY|O_CLOEXEC) = 11
read(11, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20\r\0\0\0\0\0\0"..., 832) = 832
fstat(11, {st_mode=S_IFREG|0755, st_size=10912, ...}) = 0
mmap(NULL, 2105352, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 11, 0) = 0x7ffb12cf4000
mprotect(0x7ffb12cf6000, 2093056, PROT_NONE) = 0
mmap(0x7ffb12ef5000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 11, 0x1000) =
0x7ffb12ef5000
mmap(0x7ffb12ef6000, 8, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) =
0x7ffb12ef6000
close(11) = 0
mprotect(0x7ffb12ef5000, 4096, PROT_READ) = 0
epoll_create(64) = 11
fcntl(11, F_GETFD) = 0
fcntl(11, F_SETFD, FD_CLOEXEC) = 0
stat("/usr/lib64/samba/ldb", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/lib64/samba/ldb", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x8} ---
+++ killed by SIGSEGV +++





signature.asc

Tom Robinson via samba

unread,
Feb 16, 2017, 4:00:02 PM2/16/17
to
Anyone?
signature.asc

Andrew Bartlett via samba

unread,
Feb 16, 2017, 4:10:02 PM2/16/17
to
On Fri, 2017-02-17 at 07:48 +1100, Tom Robinson via samba wrote:
> Anyone?

Can you please post a gdb backtrace --full?
signature.asc

Tom Robinson via samba

unread,
Feb 26, 2017, 4:10:02 PM2/26/17
to
Hi,

I replied last week with a full backtrace but I didn't see my post come through. The email was only
266KB. Is the list server or SPAM filter blocking my previous message?

In attempt to resurrect this thread again, here's the less verbose output from gdb (i.e. no backtrace):

# gdb --args python /usr/bin/samba-tool domain classicupgrade --verbose --debuglevel=0 --dbdir
/var/lib/samba/bentley --use-xattrs=yes --realm=mrc.motec.com.au --dns-backend=BIND9_DLZ
/etc/samba/smb.bentley.conf
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-94.el7
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/python2.7...Reading symbols from
/usr/lib/debug/usr/bin/python2.7.debug...done.
done.
(gdb) run
Starting program: /usr/bin/python /usr/bin/samba-tool domain classicupgrade --verbose --debuglevel=0
--dbdir /var/lib/samba/bentley --use-xattrs=yes --realm=mrc.motec.com.au --dns-backend=BIND9_DLZ
/etc/samba/smb.bentley.conf
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Detaching after fork from child process 20145.
Detaching after fork from child process 20147.
Reading smb.conf
Provisioning
Exporting account policy
Detaching after fork from child process 20149.
Exporting groups
Ignoring group 'Administrators' S-1-5-32-544 listed but then not found: Unable to enumerate members
for alias, (-1073741487,The specified local group does not exist.)
Ignoring group 'Account Operators' S-1-5-32-548 listed but then not found: Unable to enumerate
members for alias, (-1073741487,The specified local group does not exist.)
Ignoring group 'Print Operators' S-1-5-32-550 listed but then not found: Unable to enumerate members
for alias, (-1073741487,The specified local group does not exist.)
Ignoring group 'Backup Operators' S-1-5-32-551 listed but then not found: Unable to enumerate
members for alias, (-1073741487,The specified local group does not exist.)
Ignoring group 'Replicators' S-1-5-32-552 listed but then not found: Unable to enumerate members for
alias, (-1073741487,The specified local group does not exist.)
Exporting users
Skipping wellknown rid=500 (for username=root)
Next rid = 13001

Program received signal SIGSEGV, Segmentation fault.
lpcfg_tls_verify_peer (lp_ctx=0x0) at default/lib/param/param_functions.c:352
352 FN_GLOBAL_INTEGER(tls_verify_peer, tls_verify_peer)
(gdb)



signature.asc

Tom Robinson via samba

unread,
Mar 5, 2017, 4:50:03 PM3/5/17
to
Full back trace provided in previous message. Still don't know why samba-tool is crashing. Any help
is appreciated.


signature.asc

Andrew Bartlett via samba

unread,
Mar 5, 2017, 10:20:03 PM3/5/17
to
Can you run testparm over the smb.conf file?

I think it may be refusing to load it.

Andrew Bartlett

Tom Robinson via samba

unread,
Mar 6, 2017, 3:10:02 PM3/6/17
to
Thanks Andrew.

Here's the basic out put. The only complaint I can see is the rlimit_max. Do you want the extended
output as well?

Load smb config files from /etc/samba/smb.bentley.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[homes]"
Processing section "[netlogon]"
Processing section "[public]"
Processing section "[accounts]"
Processing section "[archive]"
Processing section "[defence]"
Processing section "[dispatch]"
Processing section "[engineering]"
Processing section "[git]"
Processing section "[marketing]"
Processing section "[management]"
Processing section "[mars]"
Processing section "[operations]"
Processing section "[production]"
Processing section "[pcmirror]"
Processing section "[reports]"
Processing section "[resources]"
Processing section "[sage]"
Processing section "[sysadmin]"
Processing section "[temp]"
Loaded services file OK.
Server role: ROLE_DOMAIN_PDC

Press enter to see a dump of your service definitions



signature.asc

Tom Robinson via samba

unread,
Mar 20, 2017, 5:40:04 PM3/20/17
to
Still no luck with this... can anyone offer any further help?

signature.asc
Reply all
Reply to author
Forward
0 new messages