[PATCHSET] Samba AD with MIT Kerberos

Andreas Schneider asn at samba.org
Thu Apr 6 06:28:40 UTC 2017


On Tuesday, 4 April 2017 02:54:17 CEST Andrew Bartlett wrote:
> On Mon, 2017-04-03 at 13:27 +0200, Andreas Schneider wrote:
> > On Monday, 3 April 2017 12:54:31 CEST Miguel medalha wrote:
> > > > We have a define for C, it is called SAMBA4_USES_HEIMADAL.
> > > 
> > > That would be *HEIMDAL*, I hope?
> > 
> > Let's pray for that :-)
> 
> When it comes out our > 5 year old Heimdal snapshot, prayer is a good
> thing :-).
> 
> In the meantime, can you run an autobuild on this?
> 
> I got this building Ubuntu on 16.04:
> 
> [32(532)/2083 at 23m24s] samba4.blackbox.upgradeprovision.alpha13
> UNEXPECTED(failure):
> samba4.blackbox.upgradeprovision.alpha13.upgradeprovision(none)
> REASON: Exception: Exception: Find last provision USN, 1 invocation(s)
> for a total of 1 ranges
> Old style for usn ranges used
> Creating a reference provision
> A problem occurred while trying to upgrade your provision. A full
> backup is located at
> /home/ubuntu/autobuild/b25115/samba/bin/ab/provision/alpha13_upgrade/pr
> ivate/backupprovisionzueHNI
> Traceback (most recent call last):
>   File
> "/home/ubuntu/autobuild/b25115/samba/bin/samba_upgradeprovision", line
> 1636, in <module>
>     provision_logger)
>   File "bin/python/samba/upgradehelpers.py", line 259, in newprovision
>     useeadb=True, use_ntvfs=True)
>   File "bin/python/samba/provision/__init__.py", line 2022, in
> provision
>     kdcconfdir=kdcconfdir)
>   File "bin/python/samba/provision/__init__.py", line 734, in
> make_smbconf
>     make_kdcconf(realm, domain, kdcconfdir, os.path.dirname(lp.get("log
> file")))
>   File "bin/python/samba/provision/kerberos.py", line 52, in
> make_kdcconf
>     f = open(kdcconf, 'w')
> IOError: [Errno 2] No such file or directory: 'None/kdc.conf'

This is the code of make_kdcconf:

 27 def make_kdcconf(realm, domain, kdcconfdir, logdir):                                                                                                                                              
 28                                                                                                                                                                                                   
 29     if _glue.is_heimdal_built:                                                                                                                                                                    
 30         return

So the line in the python backtrace should never be reached!

This means:

155 static PyObject *py_is_heimdal_built(PyObject *self)                                                                                                                                              
156 {                                                                                                                                                                                                 
157 #ifdef SAMBA4_USES_HEIMDAL                                                                                                                                                                        
158         Py_RETURN_TRUE;                                                                                                                                                                           
159 #else                                                                                                                                                                                             
160         Py_RETURN_FALSE;                                                                                                                                                                          
161 #endif                                                                                                                                                                                            
162 }

returns Py_RETURN_FALSE.

It looks like configure/gcc is broken on your machine, if this is a heimdal 
build!

config.log
and 'gcc -E pyglue.c' would be what we need to investigate!

Can you provide those files?


	Andreas


-- 
Andreas Schneider                   GPG-ID: CC014E3D
Samba Team                             asn at samba.org
www.samba.org



More information about the samba-technical mailing list