Red Hat Bugzilla – Bug 1270854
net ads fails with -bash: net: command not found; when installed manually, it does not work
Last modified: 2015-11-19 04:43:50 EST
Section Number and Name:
Procedure 20.5. To Configure Direct AD Integration with GSS-proxy, item 3.
Describe the issue:
# KRB5_KTNAME=FILE:/etc/gssproxy/http.keytab net ads keytab add HTTP -U administrator -d3 -s /etc/net-keytab.conf
-bash: net: command not found
Suggestions for improvement:
The prerequisites in Procedure 20.4, item 1, should include /usr/bin/net.
Note that between RHEL 7.1 and RHEL 7.2 (Samba 4.1 vs. 4.2.3), that utility moved from samba-common to samba-common-tools, so installing it via its path seems like the most compatible approach.
Note that due to bug 1271614, the URL we talk about now seems to be
Also, on RHEL 7.1 samba-common was installed as part of dependencies of the other packages listed in Procedure 21.4 step 1. It no longer seem to be the case on RHEL 7.2.
It seems in RHEL 7.2, there's also bug 1271618 which might prevent full testing of the Direct AD scenario until fix/workaround is found, even if /usr/bin/net is installed.
The proposed fix is to amend the realm join command in Procedure 21.4. step 2 to read
realm join --membership-software=samba -v EXAMPLE.ORG
Both bug 1271608 and bug 1271618 were resolved with RHEL 7.2 release.
No further action is needed here.