{"id":229,"date":"2014-08-14T14:05:29","date_gmt":"2014-08-14T18:05:29","guid":{"rendered":"http:\/\/brucetimberlake.com\/blog\/?p=229"},"modified":"2014-08-14T14:05:29","modified_gmt":"2014-08-14T18:05:29","slug":"dxcmd-error-unable-to-initialize-dclient-caused-by-config-file-permissions","status":"publish","type":"post","link":"https:\/\/brucetimberlake.com\/blog\/2014\/08\/14\/dxcmd-error-unable-to-initialize-dclient-caused-by-config-file-permissions\/","title":{"rendered":"dxcmd error &#8220;Unable to initialize DClient&#8221; caused by config file permissions"},"content":{"rendered":"<p>Attempting to run dxcmd was yielding this error on one of our IDM servers:<\/p>\n<p><code><br \/>\nDirXML Command Line Utility<br \/>\nversion 4.0.2.1<br \/>\nCopyright (C) 2003-2011 Novell Inc., All Rights Reserved<\/code><\/p>\n<p>Enter user name: foo.user<br \/>\nEnter user&#8217;s password:<br \/>\njava.lang.Error: Unable to initialize DClient<br \/>\nat novell.jclient.JClient.initializeDclient(Native Method)<br \/>\nat novell.jclient.JClient.initialize(JClient.java:906)<br \/>\nat com.novell.nds.dirxml.util.DxCommand.commandLine(DxCommand.java:419)<br \/>\nat com.novell.nds.dirxml.util.DxCommand.main(DxCommand.java:391)<\/p>\n<p>Using the command<\/p>\n<p><code>strace -f dxcmd -user foo.user -password S00perS33cr3t<\/code><\/p>\n<p>turned up a &#8220;permission denied&#8221; error while trying to open <code>\/etc\/opt\/novell\/nici64.cfg<\/code>. On other servers, that file was world-readable; on the problem server, it was owner- and group-readable only.<\/p>\n<p>The chosen fix was to remove world-readable attribute on all servers, and use &#8220;sudo dxcmd&#8221; to eliminate the file permissions problem.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Attempting to run dxcmd was yielding this error on one of our IDM servers: DirXML Command Line Utility version 4.0.2.1 Copyright (C) 2003-2011 Novell Inc., All Rights Reserved Enter user name: foo.user Enter user&#8217;s password: java.lang.Error: Unable to initialize DClient at novell.jclient.JClient.initializeDclient(Native Method) at novell.jclient.JClient.initialize(JClient.java:906) at com.novell.nds.dirxml.util.DxCommand.commandLine(DxCommand.java:419) at com.novell.nds.dirxml.util.DxCommand.main(DxCommand.java:391) Using the command strace -f dxcmd &hellip; <a href=\"https:\/\/brucetimberlake.com\/blog\/2014\/08\/14\/dxcmd-error-unable-to-initialize-dclient-caused-by-config-file-permissions\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;dxcmd error &#8220;Unable to initialize DClient&#8221; caused by config file permissions&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[31,6],"tags":[33,32],"class_list":["post-229","post","type-post","status-publish","format-standard","hentry","category-edirectory","category-sysadmin","tag-dxcmd","tag-strace"],"_links":{"self":[{"href":"https:\/\/brucetimberlake.com\/blog\/wp-json\/wp\/v2\/posts\/229","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/brucetimberlake.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/brucetimberlake.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/brucetimberlake.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/brucetimberlake.com\/blog\/wp-json\/wp\/v2\/comments?post=229"}],"version-history":[{"count":3,"href":"https:\/\/brucetimberlake.com\/blog\/wp-json\/wp\/v2\/posts\/229\/revisions"}],"predecessor-version":[{"id":232,"href":"https:\/\/brucetimberlake.com\/blog\/wp-json\/wp\/v2\/posts\/229\/revisions\/232"}],"wp:attachment":[{"href":"https:\/\/brucetimberlake.com\/blog\/wp-json\/wp\/v2\/media?parent=229"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/brucetimberlake.com\/blog\/wp-json\/wp\/v2\/categories?post=229"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/brucetimberlake.com\/blog\/wp-json\/wp\/v2\/tags?post=229"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}