Bug 913457

Summary: adcli: couldn't create temporary directory in: /var/cache/realmd: No such file or directory
Product: [Fedora] Fedora Reporter: Miroslav Vadkerti <mvadkert>
Component: realmdAssignee: Stef Walter <stefw>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 18CC: jhrozek, stefw, yaneti
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: realmd-0.13.90-1.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-05-22 03:09:52 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 Miroslav Vadkerti 2013-02-21 09:52:22 UTC
Description of problem:

When joining domain I see this error with realmd.
# realm join -v security.baseos.qe
 * Searching for kerberos SRV records for domain: _kerberos._udp.security.baseos.qe
 * Searching for MSDCS SRV records on domain: _kerberos._tcp.dc._msdcs.security.baseos.qe
 * dc.security.baseos.qe:88 
 * Found kerberos DNS records for: security.baseos.qe
 * Found AD style DNS records for: security.baseos.qe
 * Successfully discovered: security.baseos.qe
 * Assuming packages installed
 * LANG=C /usr/sbin/adcli join --verbose --show-details --domain SECURITY.BASEOS.QE --login-type computer --no-password
adcli: couldn't create temporary directory in: /var/cache/realmd: No such file or directory
 * Using domain name: SECURITY.BASEOS.QE
 * Calculated computer account name from fqdn: DHCP-24-200
 * Calculated domain realm from name: SECURITY.BASEOS.QE
 * Resolved LDAP urls from SRV record: _ldap._tcp.SECURITY.BASEOS.QE: ldap://dc.security.baseos.qe:389
 ! Couldn't authenticate as machine account: DHCP-24-200: Preauthentication failed
adcli: couldn't connect to SECURITY.BASEOS.QE domain: Couldn't authenticate as machine account: DHCP-24-200: Preauthentication failed
 ! Unable to automatically join the domain
Password for Administrator: 
[snip]

Version-Release number of selected component (if applicable):
realmd-0.13.2-1.fc18

How reproducible:
100%

Steps to Reproduce:
1. realm join
  
Actual results:
adcli: couldn't create temporary directory in: /var/cache/realmd: No such file or directory

Expected results:
No error

Additional info:
This is bug is not related to SELinux

Comment 1 Stef Walter 2013-04-29 12:55:56 UTC
This was a packaging problem in realmd. 

FYI, we also have upstream work around now: http://cgit.freedesktop.org/realmd/realmd/commit/?id=51f49faa9467ad5c5f29c2e6e9a31a488dbc3f70

Comment 2 Fedora Update System 2013-04-29 18:03:39 UTC
realmd-0.13.90-1.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/realmd-0.13.90-1.fc19

Comment 3 Fedora Update System 2013-04-30 20:13:04 UTC
Package realmd-0.13.90-1.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing realmd-0.13.90-1.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-7111/realmd-0.13.90-1.fc19
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2013-05-02 14:14:00 UTC
realmd-0.13.91-1.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/realmd-0.13.91-1.fc19

Comment 5 Fedora Update System 2013-05-22 03:09:52 UTC
realmd-0.13.90-1.fc19 has been pushed to the Fedora 19 obsolete repository.  If problems still persist, please make note of it in this bug report.