Bug 1270854

Summary: net ads fails with -bash: net: command not found; when installed manually, it does not work
Product: Red Hat Satellite Reporter: Jan Pazdziora <jpazdziora>
Component: Docs User GuideAssignee: Hayley Hudgeons <hhudgeon>
Status: CLOSED ERRATA QA Contact: David O'Brien <daobrien>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: NightlyCC: jpazdziora
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-19 09:43:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jan Pazdziora 2015-10-12 14:08:21 UTC
Document URL: 

https://access.redhat.com/documentation/en-US/Red_Hat_Satellite/6.1/html/User_Guide/sect-Red_Hat_Satellite-User_Guide-AD_direct.html

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.

Additional information: 

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.

Comment 2 Jan Pazdziora 2015-10-14 11:46:07 UTC
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.

Comment 3 Jan Pazdziora 2015-10-14 11:54:07 UTC
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.

Comment 4 Jan Pazdziora 2015-10-16 08:51:10 UTC
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

Comment 6 Jan Pazdziora 2015-11-19 09:43:50 UTC
Both bug 1271608 and bug 1271618 were resolved with RHEL 7.2 release.

No further action is needed here.