[Samba] samba4.1.4 samba-tool fails to join domain

Chan Min Wai dcmwai at gmail.com
Fri Feb 14 08:40:59 MST 2014


Dear CK,

I think you have a bad build...
I would suggest you use the sernet package is possible. 

http://enterprisesamba.com

Thank you. 


> CJ Keist <cj.keist at colostate.edu> 於 14/02/2014 11:29 PTG 寫道:
> 
> Running "make test" in the source folder is also showing this same issue of not finding the param module.  Not sure how I can get python to recognize the file is there????
> 
> expanded command: PYTHONPATH=/data/src/samba-4.1.4/bin/python:/data/src/samba-4.1.4/lib/subunit/python:/data/src/samba-4.1.4/lib/testtools python -m subunit.run $LISTOPT samba.tests.samba3sam
> ERROR: Testsuite[samba.tests.samba3sam]
> REASON: Exit code was 255
> 
> 
> [24/1580 in 3s, 21 errors] wafsamba.tests.test_suite
> [25/1580 in 4s, 21 errors] samba4.blackbox.dbcheck.alpha13
> [26/1580 in 4s, 21 errors] samba4.blackbox.dbcheck.release-4-0-0
> [27/1580 in 4s, 21 errors] samba4.blackbox.dbcheck.release-4-1-0rc3
> UNEXPECTED(failure): samba4.blackbox.dbcheck.release-4-1-0rc3.reindex(none)
> REASON: _StringException: _StringException: Traceback (most recent call last):
>  File "/data/src/samba-4.1.4/bin/samba-tool", line 33, in <module>
>    from samba.netcmd.main import cmd_sambatool
>  File "bin/python/samba/__init__.py", line 27, in <module>
>    import samba.param
> ImportError: No module named param
> UNEXPECTED(failure): samba4.blackbox.dbcheck.release-4-1-0rc3.dbcheck_clean(none)
> REASON: _StringException: _StringException: Traceback (most recent call last):
>  File "/data/src/samba-4.1.4/bin/samba-tool", line 33, in <module>
>    from samba.netcmd.main import cmd_sambatool
>  File "bin/python/samba/__init__.py", line 27, in <module>
>    import samba.param
> ImportError: No module named param
> Traceback (most recent call last):
>  File "/usr/lib/python2.6/runpy.py", line 122, in _run_module_as_main
>    "__main__", fname, loader, pkg_name)
>  File "/usr/lib/python2.6/runpy.py", line 34, in _run_code
>    exec code in run_globals
>  File "/data/src/samba-4.1.4/lib/subunit/python/subunit/run.py", line 84, in <module>
>    stdout=sys.stdout)
>  File "/data/src/samba-4.1.4/lib/testtools/testtools/run.py", line 164, in __init__
>    self.parseArgs(argv)
>  File "/data/src/samba-4.1.4/lib/testtools/testtools/run.py", line 241, in parseArgs
>    self.createTests()
>  File "/data/src/samba-4.1.4/lib/testtools/testtools/run.py", line 250, in createTests
>    self.module)
>  File "/usr/lib/python2.6/unittest.py", line 613, in loadTestsFromNames
>    suites = [self.loadTestsFromName(name, module) for name in names]
>  File "/usr/lib/python2.6/unittest.py", line 576, in loadTestsFromName
>    module = __import__('.'.join(parts_copy))
>  File "/data/src/samba-4.1.4/bin/python/samba/__init__.py", line 27, in <module>
>    import samba.param
> ImportError: No module named param
> command: PYTHON=python /data/src/samba-4.1.4/testprogs/blackbox/dbcheck-oldrelease.sh $PREFIX_ABS/provision release-4-1-0rc3 --configfile=$SMB_CONF_PATH 2>&1 | /data/src/samba-4.1.4/selftest/filter-subunit --fail-on-empty --prefix="samba4.blackbox.dbcheck.release-4-1-0rc3." --suffix="(none)"
> expanded command: PYTHON=python /data/src/samba-4.1.4/testprogs/blackbox/dbcheck-oldrelease.sh /data/src/samba-4.1.4/st/provision release-4-1-0rc3 --configfile=/data/src/samba-4.1.4/st/client/client.conf 2>&1 | /data/src/samba-4.1.4/selftest/filter-subunit --fail-on-empty --prefix="samba4.blackbox.dbcheck.release-4-1-0rc3." --suffix="(none)"
> ERROR: Testsuite[samba4.blackbox.dbcheck.release-4-1-0rc3]
> REASON: Exit code was 1
> 
> 
> [28/1580 in 6s, 22 errors] samba4.blackbox.upgradeprovision.alpha13
> [29/1580 in 7s, 22 errors] samba4.blackbox.upgradeprovision.release-4-0-0
> [30/1580 in 7s, 22 errors] samba.tests.upgradeprovision
> command: PYTHONPATH=$PYTHONPATH:/data/src/samba-4.1.4/lib/subunit/python:/data/src/samba-4.1.4/lib/testtools python -m subunit.run $LISTOPT samba.tests.upgradeprovision
> expanded command: PYTHONPATH=/data/src/samba-4.1.4/bin/python:/data/src/samba-4.1.4/lib/subunit/python:/data/src/samba-4.1.4/lib/testtools python -m subunit.run $LISTOPT samba.tests.upgradeprovision
> ERROR: Testsuite[samba.tests.upgradeprovision]
> REASON: Exit code was 255
> 
> 
> [31/1580 in 7s, 23 errors] samba.tests.xattr
> Traceback (most recent call last):
>  File "/usr/lib/python2.6/runpy.py", line 122, in _run_module_as_main
>    "__main__", fname, loader, pkg_name)
>  File "/usr/lib/python2.6/runpy.py", line 34, in _run_code
>    exec code in run_globals
>  File "/data/src/samba-4.1.4/lib/subunit/python/subunit/run.py", line 84, in <module>
>    stdout=sys.stdout)
>  File "/data/src/samba-4.1.4/lib/testtools/testtools/run.py", line 164, in __init__
>    self.parseArgs(argv)
>  File "/data/src/samba-4.1.4/lib/testtools/testtools/run.py", line 241, in parseArgs
>    self.createTests()
>  File "/data/src/samba-4.1.4/lib/testtools/testtools/run.py", line 250, in createTests
>    self.module)
>  File "/usr/lib/python2.6/unittest.py", line 613, in loadTestsFromNames
>    suites = [self.loadTestsFromName(name, module) for name in names]
>  File "/usr/lib/python2.6/unittest.py", line 576, in loadTestsFromName
>    module = __import__('.'.join(parts_copy))
>  File "/data/src/samba-4.1.4/bin/python/samba/__init__.py", line 27, in <module>
>    import samba.param
> ImportError: No module named param
> command: PYTHONPATH=$PYTHONPATH:/data/src/samba-4.1.4/lib/subunit/python:/data/src/samba-4.1.4/lib/testtools python -m subunit.run $LISTOPT samba.tests.xattr
> expanded command: PYTHONPATH=/data/src/samba-4.1.4/bin/python:/data/src/samba-4.1.4/lib/subunit/python:/data/src/samba-4.1.4/lib/testtools python -m subunit.run $LISTOPT samba.tests.xattr
> ERROR: Testsuite[samba.tests.xattr]
> REASON: Exit code was 255
> 
> 
> [32/1580 in 7s, 24 errors] samba.tests.ntacls
> Traceback (most recent call last):
>  File "/usr/lib/python2.6/runpy.py", line 122, in _run_module_as_main
>    "__main__", fname, loader, pkg_name)
>  File "/usr/lib/python2.6/runpy.py", line 34, in _run_code
>    exec code in run_globals
>  File "/data/src/samba-4.1.4/lib/subunit/python/subunit/run.py", line 84, in <module>
>    stdout=sys.stdout)
>  File "/data/src/samba-4.1.4/lib/testtools/testtools/run.py", line 164, in __init__
>    self.parseArgs(argv)
>  File "/data/src/samba-4.1.4/lib/testtools/testtools/run.py", line 241, in parseArgs
>    self.createTests()
>  File "/data/src/samba-4.1.4/lib/testtools/testtools/run.py", line 250, in createTests
>    self.module)
>  File "/usr/lib/python2.6/unittest.py", line 613, in loadTestsFromNames
>    suites = [self.loadTestsFromName(name, module) for name in names]
>  File "/usr/lib/python2.6/unittest.py", line 576, in loadTestsFromName
>    module = __import__('.'.join(parts_copy))
>  File "/data/src/samba-4.1.4/bin/python/samba/__init__.py", line 27, in <module>
>    import samba.param
> ImportError: No module named param
> command: PYTHONPATH=$PYTHONPATH:/data/src/samba-4.1.4/lib/subunit/python:/data/src/samba-4.1.4/lib/testtools python -m subunit.run $LISTOPT samba.tests.ntacls
> expanded command: PYTHONPATH=/data/src/samba-4.1.4/bin/python:/data/src/samba-4.1.4/lib/subunit/python:/data/src/samba-4.1.4/lib/testtools python -m subunit.run $LISTOPT samba.tests.ntacls
> ERROR: Testsuite[samba.tests.ntacls]
> REASON: Exit code was 255
> 
> 
> [33/1580 in 7s, 25 errors] samba.tests.policy
> Traceback (most recent call last):
>  File "/usr/lib/python2.6/runpy.py", line 122, in _run_module_as_main
>    "__main__", fname, loader, pkg_name)
>  File "/usr/lib/python2.6/runpy.py", line 34, in _run_code
>    exec code in run_globals
>  File "/data/src/samba-4.1.4/lib/subunit/python/subunit/run.py", line 84, in <module>
>    stdout=sys.stdout)
>  File "/data/src/samba-4.1.4/lib/testtools/testtools/run.py", line 164, in __init__
>    self.parseArgs(argv)
>  File "/data/src/samba-4.1.4/lib/testtools/testtools/run.py", line 241, in parseArgs
>    self.createTests()
>  File "/data/src/samba-4.1.4/lib/testtools/testtools/run.py", line 250, in createTests
>    self.module)
>  File "/usr/lib/python2.6/unittest.py", line 613, in loadTestsFromNames
>    suites = [self.loadTestsFromName(name, module) for name in names]
>  File "/usr/lib/python2.6/unittest.py", line 576, in loadTestsFromName
>    module = __import__('.'.join(parts_copy))
>  File "/data/src/samba-4.1.4/bin/python/samba/__init__.py", line 27, in <module>
>    import samba.param
> ImportError: No module named param
> command: PYTHONPATH=$PYTHONPATH:/data/src/samba-4.1.4/lib/subunit/python:/data/src/samba-4.1.4/lib/testtools python -m subunit.run $LISTOPT samba.tests.policy
> expanded command: PYTHONPATH=/data/src/samba-4.1.4/bin/python:/data/src/samba-4.1.4/lib/subunit/python:/data/src/samba-4.1.4/lib/testtools python -m subunit.run $LISTOPT samba.tests.policy
> ERROR: Testsuite[samba.tests.policy]
> REASON: Exit code was 255
> 
> 
> tdbsam_open: Converting version 0.0 database to version 4.0.
> WARNING: database '/data/src/samba-4.1.4/st/s3dc/private/passdb.tdb.tmp' does not end in .[n]tdb: treating it as a TDB file!
> tdbsam_convert_backup: updated /data/src/samba-4.1.4/st/s3dc/private/passdb.tdb file.
> account_policy_get: tdb_fetch_uint32 failed for type 1 (min password length), returning 0
> account_policy_get: tdb_fetch_uint32 failed for type 2 (password history), returning 0
> account_policy_get: tdb_fetch_uint32 failed for type 3 (user must logon to change password), returning 0
> account_policy_get: tdb_fetch_uint32 failed for type 4 (maximum password age), returning 0
> account_policy_get: tdb_fetch_uint32 failed for type 5 (minimum password age), returning 0
> account_policy_get: tdb_fetch_uint32 failed for type 6 (lockout duration), returning 0
> account_policy_get: tdb_fetch_uint32 failed for type 7 (reset count minutes), returning 0
> account_policy_get: tdb_fetch_uint32 failed for type 8 (bad lockout attempt), returning 0
> account_policy_get: tdb_fetch_uint32 failed for type 9 (disconnect time), returning 0
> account_policy_get: tdb_fetch_uint32 failed for type 10 (refuse machine password change), returning 0
> Traceback (most recent call last):
>  File "/data/src/samba-4.1.4/source4/scripting/bin/samba_dnsupdate", line 41, in <module>
>    import samba
>  File "bin/python/samba/__init__.py", line 27, in <module>
>    import samba.param
> ImportError: No module named param
> Unable to update hostname into /data/src/samba-4.1.4/st/dns_host_file at /data/src/samba-4.1.4/selftest/target/Samba3.pm line 1179.
> 
> FAILED (2 failures, 0 errors and 0 unexpected successes in 26 testsuites)
> 
> A summary with detailed information can be found in:
>  ./st/summary
> ERROR: test failed with exit code 1
> make: *** [test] Error 1
> root at omni:/data/src/samba-4.1.4#
> 
> 
> 
>> On 2/13/2014 11:59 PM, Daniel Müller wrote:
>> So you join to an existing domain!?
>> Be shure you put the name of the existing ads-domain-dns in your
>> resolv.conf.
>> 
>> This could be an issue.
>> 
>> 
>> EDV Daniel Müller
>> 
>> Leitung EDV
>> Tropenklinik Paul-Lechler-Krankenhaus
>> Paul-Lechler-Str. 24
>> 72076 Tübingen
>> Tel.: 07071/206-463, Fax: 07071/206-499
>> eMail: mueller at tropenklinik.de
>> Internet: www.tropenklinik.de
>> "Der Mensch ist die Medizin des Menschen"
>> 
>> 
>> 
>> 
>> -----Ursprüngliche Nachricht-----
>> Von: samba-bounces at lists.samba.org [mailto:samba-bounces at lists.samba.org]Im
>> Auftrag von CJ Keist
>> Gesendet: Donnerstag, 13. Februar 2014 21:24
>> An: samba at lists.samba.org
>> Betreff: [Samba] samba4.1.4 samba-tool fails to join domain
>> 
>> Update,
>>       The /opt/samba-4.1.4/lib/python2.6/site-packages/samba does exist and
>> the param.so file is there. So not sure why it is complaining that it cannot
>> find that module????
>> 
>> ---------------------------------
>> 
>> All,
>>      I have compiled and installed samba with no errors on OmniOS
>> 151.008j-r1.  Reading the following wiki to join to an existing AD domain:
>> 
>> https://wiki.samba.org/index.php/Samba4/HOWTO/Join_a_domain_as_a_DC
>> 
>> All steps go through with out any issues until I run:
>> 
>> bin/samba-tool domain join engr.colostate.edu DC -Uadministrator
>> --realm=engr.colostate.edu --dns-backend=BIND9_DLZ
>> 
>> I get the following error:
>> Traceback (most recent call last):
>>    File "bin/samba-tool", line 33, in <module>
>>      from samba.netcmd.main import cmd_sambatool
>>    File
>> "/opt/samba-4.1.4/lib/python2.6/site-packages/samba/__init__.py", line 27,
>> in <module>
>>      import samba.param
>> ImportError: No module named param
>> 
>> I cannot find the samba.param file in the samba install folder anywhere.
>>   Looking like something didn't go right during the install?
>> 
>> I did just basic configure command:
>> ./configure --prefix=/opt/samba-4.1.4
>> make
>> make install
> 
> -- 
> C. J. Keist                     Email: cj.keist at colostate.edu
> Systems Group Manager           Solaris 10 OS (SAI)
> Engineering Network Services    Phone: 970-491-0630
> College of Engineering, CSU     Fax:   970-491-5569
> Ft. Collins, CO 80523-1301
> 
> All I want is a chance to prove 'Money can't buy happiness'
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba


More information about the samba mailing list