{"action":"created","issue":{"url":"https://api.github.com/repos/biemond/biemond-wildfly/issues/179","repository_url":"https://api.github.com/repos/biemond/biemond-wildfly","labels_url":"https://api.github.com/repos/biemond/biemond-wildfly/issues/179/labels{/name}","comments_url":"https://api.github.com/repos/biemond/biemond-wildfly/issues/179/comments","events_url":"https://api.github.com/repos/biemond/biemond-wildfly/issues/179/events","html_url":"https://github.com/biemond/biemond-wildfly/issues/179","id":205881059,"number":179,"title":"Cannot create naming context due to naming issues","user":{"login":"cfrantsen","id":12393099,"avatar_url":"https://avatars.githubusercontent.com/u/12393099?v=3","gravatar_id":"","url":"https://api.github.com/users/cfrantsen","html_url":"https://github.com/cfrantsen","followers_url":"https://api.github.com/users/cfrantsen/followers","following_url":"https://api.github.com/users/cfrantsen/following{/other_user}","gists_url":"https://api.github.com/users/cfrantsen/gists{/gist_id}","starred_url":"https://api.github.com/users/cfrantsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cfrantsen/subscriptions","organizations_url":"https://api.github.com/users/cfrantsen/orgs","repos_url":"https://api.github.com/users/cfrantsen/repos","events_url":"https://api.github.com/users/cfrantsen/events{/privacy}","received_events_url":"https://api.github.com/users/cfrantsen/received_events","type":"User","site_admin":false},"labels":[{"id":108650917,"url":"https://api.github.com/repos/biemond/biemond-wildfly/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-02-07T13:03:02Z","updated_at":"2017-02-08T09:00:08Z","closed_at":null,"body":"I'm trying to create a naming context like this, where name is `java:global/ldap/bmk`\r\n```\r\nwildfly_resource { \"/subsystem=naming/binding=${name}\":\r\n\thost => '127.0.0.1',\r\n\tport => '9990',\r\n\tpassword => 'xxx',\r\n\tusername => 'xxx',\r\n    state => {\r\n        binding-type => 'external-context',\r\n        cache        => false,\r\n        'class'      => 'javax.naming.directory.InitialDirContext',\r\n        module       => 'org.jboss.as.naming',\r\n        environment  => {\r\n            'java.naming.factory.initial'         => 'com.sun.jndi.ldap.LdapCtxFactory',\r\n            'java.naming.provider.url'            => join(prefix($servers, 'ldap://'), ' '),\r\n            'java.naming.security.authentication' => 'simple',\r\n            'java.naming.security.principal'      => $bind_dn,\r\n            'java.naming.security.credentials'    => $bind_credential,\r\n            'com.sun.jndi.ldap.connect.pool'      => true,\r\n        },\r\n    }\r\n}\r\n```\r\n This results in the following error:\r\n\r\n> Error: Could not set 'present' on ensure: Failed with: WFLYNAM0048: Invalid binding name java, name must start with one of [java:global, java:jboss, java:/] for ......\r\n\r\nSo I try to escape the colon and slashes in the name using `regsubst($name, '(/|:)', '\\\\\\1', 'G')` but then I get this error instead:\r\n\r\n> Could not evaluate: undefined method `elements' for nil:NilClass\r\n\r\nThis used to work in earlier versions (0.5 something) but stopped working when I tried upgrading to the newest one. It looks to be related to #177.\r\n\r\nAny suggestions on how I can get this working?\r\n"},"comment":{"url":"https://api.github.com/repos/biemond/biemond-wildfly/issues/comments/278269783","html_url":"https://github.com/biemond/biemond-wildfly/issues/179#issuecomment-278269783","issue_url":"https://api.github.com/repos/biemond/biemond-wildfly/issues/179","id":278269783,"user":{"login":"cfrantsen","id":12393099,"avatar_url":"https://avatars.githubusercontent.com/u/12393099?v=3","gravatar_id":"","url":"https://api.github.com/users/cfrantsen","html_url":"https://github.com/cfrantsen","followers_url":"https://api.github.com/users/cfrantsen/followers","following_url":"https://api.github.com/users/cfrantsen/following{/other_user}","gists_url":"https://api.github.com/users/cfrantsen/gists{/gist_id}","starred_url":"https://api.github.com/users/cfrantsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cfrantsen/subscriptions","organizations_url":"https://api.github.com/users/cfrantsen/orgs","repos_url":"https://api.github.com/users/cfrantsen/repos","events_url":"https://api.github.com/users/cfrantsen/events{/privacy}","received_events_url":"https://api.github.com/users/cfrantsen/received_events","type":"User","site_admin":false},"created_at":"2017-02-08T09:00:08Z","updated_at":"2017-02-08T09:00:08Z","body":"Works great when using explicit path, thanks."}}
{"actor":{"display_login":"cfrantsen"}}