Faing problem with backend provision

ogy_hpower ogy_hpower at yahoo.co.uk
Tue Oct 7 09:39:26 GMT 2008

Hi All,

I'm testing the backend provision now but have this kind of error;
Does anybody have this problem?

My setting is like this:
1) I'm using ubuntu server
2) i'm using rsync from GIT SAMBA_4_0
3) i'm using slapd 2.4.9 from ubuntu apt-get
4) i'm using this kind of step to install:

    1) apt-get install libblkid-dev libgnutls-dev libattr1-dev libreadline5-dev python-dev autoconf make gcc slapd
    2) rsync -a ftp.samba.org::ftp/pub/unpacked/samba_4_0_test/ SAMBA_4_0
    3) cd SAMBA_4_0/source
    4) ./autogen.sh
    5) ./configure --enable-developer
    6) make 
    7) make install
    8) setup/provision-backend --realm=RFTR.COM.MY \
        --domain=RFTR --ldap-admin-pass=zxc/., --ldap-backend-type=openldap \
        --server-role='domain controller' --ldap-backend-port=9000 \
        --ol-mmr-urls='ldap://primary.RFTR.COM.MY:9000 ldap://backup.RFTR.COM.MY:9000'

    9) it produce this kind of result:
            Your openldap Backend for Samba4 is now configured, and is ready to be started
            Server Role:         domain controller
            Hostname:            primary
            DNS Domain:          rftr.com.my
            Base DN:             DC=rftr,DC=com,DC=my
            LDAP admin user:     samba-admin
            LDAP admin password: qqwwee
            Start slapd with:    slapd -f /usr/local/samba/private/ldap/slapd.conf -h ldapi://%2Fusr%2Flocal%2Fsamba%2Fprivate%2Fldap%2Fldapi -h     ldap://
            Run provision with:  --ldap-backend=ldapi --ldap-backend-type=openldap --password=qqwwee, --username=samba-admin

    10)  start slpad with 'slapd -f /usr/local/samba/private/ldap/slapd.conf -h
ldapi://%2Fusr%2Flocal%2Fsamba%2Fprivate%2Fldap%2Fldapi -h

    11)  setup/provision --realm=RFTR.COM.MY --domain=RFTR \
          --server-role='domain controller' \
          --ldap-backend=ldapi --ldap-backend-type=openldap \
          --password=qqwwee --username=samba-admin
    12) i'm stuck at here. it produce this output:
        setup/provision --realm=RFTR.COM.MY --domain=RFTR \
        >   --server-role='domain controller' \
        >   --ldap-backend=ldapi --ldap-backend-type=openldap \
        >   --password=zxc/., --username=samba-admin
        Setting up share.ldb
        Setting up secrets.ldb
        Setting up the registry
        Setting up templates db
        Setting up idmap db
        Failed to bind - LDAP client internal error: NT_STATUS_UNEXPECTED_NETWORK_ERROR
        Failed to connect to 'ldapi://%2Fusr%2Flocal%2Fsamba%2Fprivate%2Fldap%2Fldapi'
        module partition initialization failed
        module show_deleted initialization failed
        module operational initialization failed
        module kludge_acl initialization failed
        module samldb initialization failed
        module asq initialization failed
        module extended_dn initialization failed
        module server_sort initialization failed
        module paged_results initialization failed
        module rootdse initialization failed
        Unable to load modules for /usr/local/samba/private/sam.ldb: (null)
        Traceback (most recent call last):
          File "setup/provision", line 158, in <module>
          File "bin/python/samba/provision.py", line 1021, in provision
          File "bin/python/samba/provision.py", line 743, in setup_samdb
            ldap_backend_type=ldap_backend_type, erase=erase)
          File "bin/python/samba/provision.py", line 533, in setup_samdb_partitions
            credentials=credentials, lp=lp)
          File "bin/python/samba/samdb.py", line 48, in __init__
          File "bin/python/samba/samdb.py", line 53, in connect
            super(SamDB, self).connect(misc.private_path(self.lp, url))
        _ldb.LdbError: (80, None)

Currently i'm testing on the host no.1 only; for host no. 2 not yet configure anything



More information about the samba-technical mailing list