<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: addUser - ldap integrated user add is successful but returns error if password is set in Management</title>
    <link>https://community.cisco.com/t5/management/adduser-ldap-integrated-user-add-is-successful-but-returns-error/m-p/3454875#M649</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I agree that it either shouldn't create a user, or create a user with an error message that says the password was ignored. I'm filing a request for this to be changed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My point, however, was that if you fix your code to not use a password for LDAP users, you won't need to worry about how AXL responds.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Apr 2015 14:30:23 GMT</pubDate>
    <dc:creator>npetrele</dc:creator>
    <dc:date>2015-04-08T14:30:23Z</dc:date>
    <item>
      <title>addUser - ldap integrated user add is successful but returns error if password is set</title>
      <link>https://community.cisco.com/t5/management/adduser-ldap-integrated-user-add-is-successful-but-returns-error/m-p/3454872#M646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found an interesting one today. We've established that you can create an LDAP integrated user even if the LDAP sync hasn't run yet. All it takes is filling the UserIdentity and LdapDirectoryName fields then calling addUser.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So today I created such a user as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;soapenv:Envelope xmlns:soapenv="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.xmlsoap.org/soap/envelope/" rel="nofollow" target="_blank"&gt;http://schemas.xmlsoap.org/soap/envelope/&lt;/A&gt;&lt;SPAN&gt;" xmlns:ns="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.cisco.com/AXL/API/10.5" rel="nofollow" target="_blank"&gt;http://www.cisco.com/AXL/API/10.5&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;lt;soapenv:Header/&amp;gt;&amp;lt;soapenv:Body&amp;gt;&amp;lt;ns:addUser sequence="1"&amp;gt; &amp;lt;user&amp;gt;&amp;lt;firstName&amp;gt;ata&amp;lt;/firstName&amp;gt;&amp;lt;lastName&amp;gt;test&amp;lt;/lastName&amp;gt;&amp;lt;userid&amp;gt;device_ata&amp;lt;/userid&amp;gt;&amp;lt;password&amp;gt;bbraun01&amp;lt;/password&amp;gt;&amp;lt;telephoneNumber&amp;gt;415004&amp;lt;/telephoneNumber&amp;gt;&amp;lt;mailid&amp;gt;device_ata@nxodev.intra&amp;lt;/mailid&amp;gt;&amp;lt;mobileNumber&amp;gt;&amp;lt;/mobileNumber&amp;gt;&amp;lt;ldapDirectoryName&amp;gt;LUPS_numberlookup&amp;lt;/ldapDirectoryName&amp;gt;&amp;lt;userIdentity&amp;gt;device_ata@nxodev.intra&amp;lt;/userIdentity&amp;gt;&amp;lt;/user&amp;gt;&amp;lt;/ns:addUser&amp;gt;&amp;lt;/soapenv:Body&amp;gt;&amp;lt;/soapenv:Envelope&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The response I get is this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;?xml version='1.0' encoding='UTF-8'?&amp;gt;&amp;lt;soapenv:Envelope xmlns:soapenv="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.xmlsoap.org/soap/envelope/" rel="nofollow" target="_blank"&gt;http://schemas.xmlsoap.org/soap/envelope/&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;lt;soapenv:Body&amp;gt;&amp;lt;soapenv:Fault&amp;gt;&amp;lt;faultcode&amp;gt;soapenv:Server&amp;lt;/faultcode&amp;gt;&amp;lt;faultstring&amp;gt;LDAP authentication enabled. UpdateCredential failure&amp;lt;/faultstring&amp;gt;&amp;lt;detail&amp;gt;&amp;lt;axlError&amp;gt;&amp;lt;axlcode&amp;gt;18&amp;lt;/axlcode&amp;gt;&amp;lt;axlmessage&amp;gt;LDAP authentication enabled. UpdateCredential failure&amp;lt;/axlmessage&amp;gt;&amp;lt;request&amp;gt;addUser&amp;lt;/request&amp;gt;&amp;lt;/axlError&amp;gt;&amp;lt;/detail&amp;gt;&amp;lt;/soapenv:Fault&amp;gt;&amp;lt;/soapenv:Body&amp;gt;&amp;lt;/soapenv:Envelope&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's fine, an error that tells you what is going wrong. However, it appears the user is still created. And that causes a problem... I might accept that there's a partial success for an add (never encountered it but okay.. not everything in AXL is fully documented as we know) - however, if partial success is something that exists, we still need to get the object's uuid back as you get for any other add. And that seems to conflict with the definition of an add response (which either gets you a uuid of the object created or an axl error). So I think in this case, input validation isn't being done properly and the user should never be created in the first place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is on a CUCM 10.5.2.11900-3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I leave out the password field, things are fine so that's my "workaround" - but I think this case needs more input validation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2015 08:32:16 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/adduser-ldap-integrated-user-add-is-successful-but-returns-error/m-p/3454872#M646</guid>
      <dc:creator>stephan.steiner</dc:creator>
      <dc:date>2015-03-25T08:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: addUser - ldap integrated user add is successful but returns error if password is set</title>
      <link>https://community.cisco.com/t5/management/adduser-ldap-integrated-user-add-is-successful-but-returns-error/m-p/3454873#M647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you're using ldap for login authentication, then I would assume you don't want to include a password.&amp;nbsp; The password field is for storing a local user password.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 17:22:40 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/adduser-ldap-integrated-user-add-is-successful-but-returns-error/m-p/3454873#M647</guid>
      <dc:creator>npetrele</dc:creator>
      <dc:date>2015-04-07T17:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: addUser - ldap integrated user add is successful but returns error if password is set</title>
      <link>https://community.cisco.com/t5/management/adduser-ldap-integrated-user-add-is-successful-but-returns-error/m-p/3454874#M648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Of course the field shouldn't be used.. the point is, you do something that shouldn't be done, you get an error as expected, but things are still done so something is wrong. Either do it all the way or don't do it at all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 07:02:14 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/adduser-ldap-integrated-user-add-is-successful-but-returns-error/m-p/3454874#M648</guid>
      <dc:creator>stephan.steiner</dc:creator>
      <dc:date>2015-04-08T07:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: addUser - ldap integrated user add is successful but returns error if password is set</title>
      <link>https://community.cisco.com/t5/management/adduser-ldap-integrated-user-add-is-successful-but-returns-error/m-p/3454875#M649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I agree that it either shouldn't create a user, or create a user with an error message that says the password was ignored. I'm filing a request for this to be changed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My point, however, was that if you fix your code to not use a password for LDAP users, you won't need to worry about how AXL responds.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 14:30:23 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/adduser-ldap-integrated-user-add-is-successful-but-returns-error/m-p/3454875#M649</guid>
      <dc:creator>npetrele</dc:creator>
      <dc:date>2015-04-08T14:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: addUser - ldap integrated user add is successful but returns error if password is set</title>
      <link>https://community.cisco.com/t5/management/adduser-ldap-integrated-user-add-is-successful-but-returns-error/m-p/3454876#M650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I already had the fix before I posted - I merely wanted to mention that something is wrong so it gets targeted for a fix in the future &lt;IMG src="https://community.cisco.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 16:02:15 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/adduser-ldap-integrated-user-add-is-successful-but-returns-error/m-p/3454876#M650</guid>
      <dc:creator>stephan.steiner</dc:creator>
      <dc:date>2015-04-08T16:02:15Z</dc:date>
    </item>
  </channel>
</rss>

