Skip to content

special characters in passwords

nathan-opscode edited this page Sep 12, 2010 · 1 revision

When authenticating for an iclassify query to a capistrano puppet task, or an icsearch, special characters in a password caused the following error: 

/usr/lib/ruby/1.8/net/http.rb:2097:in `error!': 406 "Not Acceptable" (Net::HTTPServerException) 
from /srv/icagent/bin/../lib/iclassify/client.rb:103:in `run_request' 
from /srv/icagent/bin/../lib/iclassify/client.rb:53:in `get_rest' 
from /srv/icagent/bin/../lib/iclassify/client.rb:29:in `search' 
from /srv/icagent/bin/icsearch:86 

commands used: 

/srv/icagent/bin/icsearch "tag:testtags" 
cap -S recipe=iclassify QUERY="fqdn:nodename.client.com" puppet 

The password in question contained a colon. LDAP password changed to one without a colon and iclassify worked properly.
</code>
</ops>
Clone this wiki locally