samba 3.0.x build problems with Heimdal 0.6.3 krb5
Luke Mewburn
luke at mewburn.net
Thu Oct 14 23:09:24 GMT 2004
Hi all.
I have been building samba 3.0.7 on NetBSD-current which uses
Heimdal 0.6.3 as the krb5 implementation, using a custom make
infrastructure that enables a higher level of build warnings
than samba's default build [*].
This build highlights the following discrepency between Heimdal's
<krb5.h> and Samba's libads/krb5_setpw.c:
Heimdal <krb5.h>
#define KRB5_KPASSWD_VERS_CHANGEPW 1
#define KRB5_KPASSWD_VERS_SETPW 0xff80
Samba libads/krb5_setpw.c
#define KRB5_KPASSWD_VERS_CHANGEPW 1
#define KRB5_KPASSWD_VERS_SETPW 2
#define KRB5_KPASSWD_VERS_SETPW_MS 0xff80
As far as I can tell, KRB5_KPASSWD_VERS_SETPW was changed
from 0xff80 to 2 in rev 1.12 of krb5_setpw.c. The CVS commit
log for that entry doesn't provide specific details as to why
this occurred; 0xff80 is the value that RFC3244 and M$ seem to
use, and I can't easily determine why it was changed to `2'
in rev 1.12.
I submitted the samba bug & proposed patch in:
https://bugzilla.samba.org/show_bug.cgi?id=1661
Is anyone aware why samba changed KRB5_KPASSWD_VERS_SETPW
from 0xff80 to 2 ?
Thanks,
Luke.
[*] This same infrastructure builds samba using a libsamba.so which means
samba 3.0.7 consumes ~ 3.5 MB of space instead of 20+ MB, which is
important for space constrained embedded environments. Even using a
libsamba.a drops the space to 16MB.
I've discussed this concept privately with tridge, and I can elaborate
more in a separate post.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20041015/93481f78/attachment.bin
More information about the samba-technical
mailing list