Paulo Alcantara via samba-technical
2018-04-23 13:41:19 UTC
Hi,
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.
Paulo
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.
Paulo