+++ This bug was initially created as a clone of Bug #245374 +++ Trying to use /usr/sbin/authconfig on the commandline to script machines joining our AD domain, but I can't make authconfig --winbindjoin=... work, it always gives error: Traceback (most recent call last): File "/usr/sbin/authconfig", line 780, in <module> module.run() File "/usr/sbin/authconfig", line 375, in run self.writeAuthInfo() File "/usr/sbin/authconfig", line 354, in writeAuthInfo self.joinDomain() File "/usr/sbin/authconfig", line 342, in joinDomain self.info.joinDomain() TypeError: joinDomain() takes exactly 2 arguments (1 given) I've tried the following permutations: authconfig ... --winbindjoin=<username> authconfig ... --winbindjoin=<username>%<password> authconfig ... --winbindjoin=<username>@<domain>%<password> all with the same results. -- Additional comment from cmr on 2007-07-18 08:10 EST -- Here is a patching fixing it: --- authconfig.py 2007-07-18 14:09:03.000000000 +0200 +++ authconfig.py.orig 2007-07-18 14:08:33.000000000 +0200 @@ -337,7 +337,7 @@ def joinDomain(self): if self.options.winbindjoin: - self.info.joinDomain(True) + self.info.joinDomain() def writeAuthInfo(self): self.info.testLDAPCACerts() @@ -379,7 +379,7 @@ def joinDomain(self): # join domain only on kickstart if self.options.kickstart and self.options.winbindjoin: - self.info.joinDomain(True) + self.info.joinDomain() def warnCallback(self, data): (comp, warning) = data
Sorry i reversed the Patch. The correct version is: --- authconfig.py.orig 2007-07-18 14:08:33.000000000 +0200 +++ authconfig.py 2007-07-18 14:09:03.000000000 +0200 @@ -337,7 +337,7 @@ def joinDomain(self): if self.options.winbindjoin: - self.info.joinDomain() + self.info.joinDomain(True) def writeAuthInfo(self): self.info.testLDAPCACerts() @@ -379,7 +379,7 @@ def joinDomain(self): # join domain only on kickstart if self.options.kickstart and self.options.winbindjoin: - self.info.joinDomain() + self.info.joinDomain(True) def warnCallback(self, data): (comp, warning) = data
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2008-0375.html