Re: [Samba] samba4 HEAD: unable to provision

2010-01-27 Thread Francesco Malvezzi
> targetdir was None when that part of the code ran and os.path.join()
> didn't like that.  I think you might be able to use --targetdir=... on
> the command line, but the help text ("Set target directory") is as
> helpful as a comment like:
> 
> x++; /* increment x */
> 
Thank you!

It fixed it, well, actually it fixed that issue.

Now I'm stuck with
"samba.provisionexceptions.ProvisioningError: slapd died before we could
make a connection to it"
because slapd_provision_command:
"/usr/local/libexec/slapd
-F/opt/src/samba-master/source4/setup/private/ldap/slapd.d -h
ldapi://%2Fopt%2Fsrc%2Fsamba-master%2Fsource4%2Fsetup%2Fprivate%2Fldap%2Fldapi
-d-1"
fails in locating
ldif_read_file: no entry file
"/opt/src/samba-master/source4/setup/private/ldap/slapd.d/cn=config.ldif"

I should investigate more, but again thank you for your help.

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


Re: [Samba] samba4 HEAD: unable to provision

2010-01-26 Thread Michael Wood
2010/1/26 Francesco Malvezzi :
> I'm trying to install samba4 with openldap, as from
> http://wiki.samba.org/index.php/Samba4/LDAP_Backend/OpenLDAP,
>
> I have got the yesterday realease, last git commit:
> commit 2024d4fb27514869d78e9bb39085f98e80413529
> Date:   Mon Jan 25 12:41:48 2010 +0100
>
> My system is GNU/Debian Linux Lenny.
>
> ./configure --prefix=/opt/samba4
> make
> sudo make install
>
> all worked
>
> ./setup/provision from the source4 dir fails with:
>
> ./setup/provision --realm=test.it --ldapadminpass=secret
> --ldap-backend-type=openldap --server-role='domain controller' --domain=test
>
> Administrator password will be set randomly!
> Traceback (most recent call last):
>  File "./setup/provision", line 244, in 
>    nosync=opts.nosync,ldap_dryrun_mode=opts.ldap_dryrun_mode,useeadb=eadb)
>  File "bin/python/samba/provision.py", line 1182, in provision
>    targetdir, sid_generator,useeadb)
>  File "bin/python/samba/provision.py", line 471, in make_smbconf
>    posixeadb_line = "posix:eadb = " +
> os.path.abspath(os.path.join(os.path.join(targetdir, "private"),"eadb.tdb"))
>  File "/usr/lib/python2.5/posixpath.py", line 62, in join
>    elif path == '' or path.endswith('/'):
> AttributeError: 'NoneType' object has no attribute 'endswith'
>
> What does it mean? What I did wrong?

targetdir was None when that part of the code ran and os.path.join()
didn't like that.  I think you might be able to use --targetdir=... on
the command line, but the help text ("Set target directory") is as
helpful as a comment like:

x++; /* increment x */

> Just for the records, what is  eadb? Is related to extended filesystem
> attributest? Server filesystem is xfs, so xattr is supported.
>
> Thank you for your help,

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