Bug 500689 - samba4 should require samba4-python, but its broken
Summary: samba4 should require samba4-python, but its broken
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: samba4
Version: 11
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Matthew Barnes
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-05-13 17:28 UTC by Nathaniel McCallum
Modified: 2010-06-28 12:32 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-06-28 12:32:00 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Nathaniel McCallum 2009-05-13 17:28:11 UTC
If you rebuild the samba4 from src.rpm and choose to enable the binary bits for the server, the rpm installs fine.  However when you run the provision command, you get an error indicating the need for samba4-python:

# /usr/share/samba/setup/provision --realm=testing.pe --domain=testing --adminpass=blah --server-role='domain controller'
Traceback (most recent call last):
  File "/usr/share/samba/setup/provision", line 33, in <module>
    import samba
ImportError: No module named samba

If you enable samba4-python in the build and install it, you get a different error:

# /usr/share/samba/setup/provision --realm=testing.pe --domain=testing --adminpass=blah --server-role='domain controller'
Traceback (most recent call last):
  File "/usr/share/samba/setup/provision", line 192, in <module>
    ldap_backend_type=opts.ldap_backend_type)
  File "/usr/lib/python2.6/site-packages/samba/provision.py", line 981, in provision
    targetdir)
  File "/usr/lib/python2.6/site-packages/samba/provision.py", line 419, in make_smbconf
    "LOCKDIR_LINE": lockdir_line
  File "/usr/lib/python2.6/site-packages/samba/provision.py", line 233, in setup_file
    open(f, 'w').write(data)
IOError: [Errno 2] No such file or directory: '/etc/samba4/samba/smb.conf'

This is apparently due to samba looking for the /etc/samba4/samba directory instead of just /etc/samba4.  If you do mkdir /etc/samba4/samba and rerun provision, you get this:

# /usr/share/samba/setup/provision --realm=testing.pe --domain=testing --adminpass=blah --server-role='domain controller'
Setting up secrets.ldb
unable to load objectguid from /usr/lib/ldb/objectguid.so: /usr/lib/ldb/objectguid.so: cannot open shared object file: No such file or directory
WARNING: Module [objectguid] not found
unable to load update_keytab from /usr/lib/ldb/update_keytab.so: /usr/lib/ldb/update_keytab.so: cannot open shared object file: No such file or directory
WARNING: Module [update_keytab] not found
Setting up the registry
Setting up templates db
Setting up idmap db
unable to load partition from /usr/lib/ldb/partition.so: /usr/lib/ldb/partition.so: cannot open shared object file: No such file or directory
WARNING: Module [partition] not found
unable to load show_deleted from /usr/lib/ldb/show_deleted.so: /usr/lib/ldb/show_deleted.so: cannot open shared object file: No such file or directory
WARNING: Module [show_deleted] not found
unable to load extended_dn_out_ldb from /usr/lib/ldb/extended_dn_out_ldb.so: /usr/lib/ldb/extended_dn_out_ldb.so: cannot open shared object file: No such file or directory
WARNING: Module [extended_dn_out_ldb] not found
unable to load linked_attributes from /usr/lib/ldb/linked_attributes.so: /usr/lib/ldb/linked_attributes.so: cannot open shared object file: No such file or directory
WARNING: Module [linked_attributes] not found
unable to load subtree_delete from /usr/lib/ldb/subtree_delete.so: /usr/lib/ldb/subtree_delete.so: cannot open shared object file: No such file or directory
WARNING: Module [subtree_delete] not found
unable to load subtree_rename from /usr/lib/ldb/subtree_rename.so: /usr/lib/ldb/subtree_rename.so: cannot open shared object file: No such file or directory
WARNING: Module [subtree_rename] not found
unable to load password_hash from /usr/lib/ldb/password_hash.so: /usr/lib/ldb/password_hash.so: cannot open shared object file: No such file or directory
WARNING: Module [password_hash] not found
unable to load kludge_acl from /usr/lib/ldb/kludge_acl.so: /usr/lib/ldb/kludge_acl.so: cannot open shared object file: No such file or directory
WARNING: Module [kludge_acl] not found
unable to load samldb from /usr/lib/ldb/samldb.so: /usr/lib/ldb/samldb.so: cannot open shared object file: No such file or directory
WARNING: Module [samldb] not found
unable to load objectclass from /usr/lib/ldb/objectclass.so: /usr/lib/ldb/objectclass.so: cannot open shared object file: No such file or directory
WARNING: Module [objectclass] not found
unable to load extended_dn_in from /usr/lib/ldb/extended_dn_in.so: /usr/lib/ldb/extended_dn_in.so: cannot open shared object file: No such file or directory
WARNING: Module [extended_dn_in] not found
unable to load extended_dn_store from /usr/lib/ldb/extended_dn_store.so: /usr/lib/ldb/extended_dn_store.so: cannot open shared object file: No such file or directory
WARNING: Module [extended_dn_store] not found
unable to load anr from /usr/lib/ldb/anr.so: /usr/lib/ldb/anr.so: cannot open shared object file: No such file or directory
WARNING: Module [anr] not found
unable to load ranged_results from /usr/lib/ldb/ranged_results.so: /usr/lib/ldb/ranged_results.so: cannot open shared object file: No such file or directory
WARNING: Module [ranged_results] not found
unable to load rootdse from /usr/lib/ldb/rootdse.so: /usr/lib/ldb/rootdse.so: cannot open shared object file: No such file or directory
WARNING: Module [rootdse] not found
paged_request:Unable to register control with rootdse!
server_sort:Unable to register control with rootdse!
asq: Unable to register control with rootdse!
unable to load partition from /usr/lib/ldb/partition.so: /usr/lib/ldb/partition.so: cannot open shared object file: No such file or directory
WARNING: Module [partition] not found
unable to load show_deleted from /usr/lib/ldb/show_deleted.so: /usr/lib/ldb/show_deleted.so: cannot open shared object file: No such file or directory
WARNING: Module [show_deleted] not found
unable to load extended_dn_out_ldb from /usr/lib/ldb/extended_dn_out_ldb.so: /usr/lib/ldb/extended_dn_out_ldb.so: cannot open shared object file: No such file or directory
WARNING: Module [extended_dn_out_ldb] not found
unable to load linked_attributes from /usr/lib/ldb/linked_attributes.so: /usr/lib/ldb/linked_attributes.so: cannot open shared object file: No such file or directory
WARNING: Module [linked_attributes] not found
unable to load subtree_delete from /usr/lib/ldb/subtree_delete.so: /usr/lib/ldb/subtree_delete.so: cannot open shared object file: No such file or directory
WARNING: Module [subtree_delete] not found
unable to load subtree_rename from /usr/lib/ldb/subtree_rename.so: /usr/lib/ldb/subtree_rename.so: cannot open shared object file: No such file or directory
WARNING: Module [subtree_rename] not found
unable to load password_hash from /usr/lib/ldb/password_hash.so: /usr/lib/ldb/password_hash.so: cannot open shared object file: No such file or directory
WARNING: Module [password_hash] not found
unable to load kludge_acl from /usr/lib/ldb/kludge_acl.so: /usr/lib/ldb/kludge_acl.so: cannot open shared object file: No such file or directory
WARNING: Module [kludge_acl] not found
unable to load samldb from /usr/lib/ldb/samldb.so: /usr/lib/ldb/samldb.so: cannot open shared object file: No such file or directory
WARNING: Module [samldb] not found
unable to load objectclass from /usr/lib/ldb/objectclass.so: /usr/lib/ldb/objectclass.so: cannot open shared object file: No such file or directory
WARNING: Module [objectclass] not found
unable to load extended_dn_in from /usr/lib/ldb/extended_dn_in.so: /usr/lib/ldb/extended_dn_in.so: cannot open shared object file: No such file or directory
WARNING: Module [extended_dn_in] not found
unable to load extended_dn_store from /usr/lib/ldb/extended_dn_store.so: /usr/lib/ldb/extended_dn_store.so: cannot open shared object file: No such file or directory
WARNING: Module [extended_dn_store] not found
unable to load anr from /usr/lib/ldb/anr.so: /usr/lib/ldb/anr.so: cannot open shared object file: No such file or directory
WARNING: Module [anr] not found
unable to load ranged_results from /usr/lib/ldb/ranged_results.so: /usr/lib/ldb/ranged_results.so: cannot open shared object file: No such file or directory
WARNING: Module [ranged_results] not found
unable to load rootdse from /usr/lib/ldb/rootdse.so: /usr/lib/ldb/rootdse.so: cannot open shared object file: No such file or directory
WARNING: Module [rootdse] not found
paged_request:Unable to register control with rootdse!
server_sort:Unable to register control with rootdse!
asq: Unable to register control with rootdse!
Setting up sam.ldb attributes
Setting up sam.ldb rootDSE
Erasing data from partitions
Traceback (most recent call last):
  File "/usr/share/samba/setup/provision", line 192, in <module>
    ldap_backend_type=opts.ldap_backend_type)
  File "/usr/lib/python2.6/site-packages/samba/provision.py", line 1057, in provision
    ldap_backend_type=ldap_backend_type)
  File "/usr/lib/python2.6/site-packages/samba/provision.py", line 774, in setup_samdb
    ldap_backend_type=ldap_backend_type, erase=erase)
  File "/usr/lib/python2.6/site-packages/samba/provision.py", line 575, in setup_samdb_partitions
    samdb.erase_partitions()
  File "/usr/lib/python2.6/site-packages/samba/__init__.py", line 149, in erase_partitions
    ["namingContexts"])
_ldb.LdbError: (34, 'NULL Base DN invalid for a base search')

Comment 1 Bug Zapper 2009-06-09 15:46:26 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 11 development cycle.
Changing version to '11'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 2 Bug Zapper 2010-04-27 14:18:58 UTC
This message is a reminder that Fedora 11 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 11.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '11'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 11's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 11 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 3 Bug Zapper 2010-06-28 12:32:00 UTC
Fedora 11 changed to end-of-life (EOL) status on 2010-06-25. Fedora 11 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.