'net ads' not respecting KRB5_CONFIG when built against MIT Kerberos

Paulo Alcantara paulo at paulo.ac
Mon Apr 23 13:41:19 UTC 2018


The 'net ads' command is not respecting the KRB5_CONFIG environment
variable when built agaisnt MIT Kerberos. That is, if the user set
KRB5_CONFIG to override system profile (/etc/krb5.conf), it will get
overwritten late in create_local_private_krb5_conf_for_domain() with
samba's local krb5.conf by calling setenv().

As per documentation, krb5 should support config files passed through
KRB5_CONFIG env var.

Please review and comment the patch below.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-s3-libads-kerberos-Do-not-overwrite-KRB5_CONFIG-for-.patch
Type: text/x-patch
Size: 1146 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20180423/d471ccf9/0001-s3-libads-kerberos-Do-not-overwrite-KRB5_CONFIG-for-.bin>

More information about the samba-technical mailing list