Tested this again with Firefox and Poster:
If I send aaaLogin I get an outCookie.
If I send aaaRefresh with inCookie set to outCookie value, I get the response errorCode="552" invocationResult="unidentified-fail" errorDescr="Authorization required"
If I send aaaRefresh with cookie set to outCookie value, I get the response errorCode="552" invocationResult="unidentified-fail" errorDescr="Authorization required"
When I do this on UCSPE:
If I send aaaLogin I get an outCookie.
If I send aaaRefresh with inCookie set to outCookie value, I get the response <aaaRefresh cookie="" response="yes" outCookie="1283410307/ddcf6b84-36e8-4513-b8d5-d4a8ab45e859" outRefreshPeriod="600" outPriv="aaa,admin,ext-lan-config,ext-lan-policy,ext-lan-qos,ext-lan-security,ext-san-config,ext-san-policy,ext-san-security,fault,operations,pod-config,pod-policy,pod-qos,pod-security,read-only" outDomains="org-root" outChannel="noencssl" outEvtChannel="noencssl"> </aaaRefresh>
Steve,
aaaRefresh requires the current cookie plus the user and password that were used to generate the cookie. The reason it worked on the emulator is because the security is not enforced on the emulator. Examples below run against a real UCS using Poster
aaaLogin Request
<aaaLogin inName="jomcodno" inPassword="cisco@123" />
aaaLogout Response
<aaaLogin cookie="" response="yes" outCookie="1290611842/f4e1e894-8672-4ba6-8f52-3caef28756f5" outRefreshPeriod="600" outPriv="admin,read-only" outDomains="" outChannel="noencssl" outEvtChannel="noencssl" outSessionId="web_43656_A" outVersion="1.3(1c)"> </aaaLogin>
aaaRefresh Request
<aaaRefresh inName="jomcdono" inPassword="cisco@123" inCookie="1290611842/f4e1e894-8672-4ba6-8f52-3caef28756f5" />
aaaRefresh Response
<aaaRefresh cookie="" response="yes" outCookie="1290611867/25034cff-a208-4493-9da2-6f2dcbf991af" outRefreshPeriod="600" outPriv="admin,read-only" outDomains="" outChannel="noencssl" outEvtChannel="noencssl"> </aaaRefresh>
aaaLogout Request utilizing cookie from aaaRefresh response
<aaaLogout inCookie="1290611867/25034cff-a208-4493-9da2-6f2dcbf991af" />
aaaLogout Response
<aaaLogout cookie="" response="yes" outStatus="success"> </aaaLogout>
Hope that helps.
Regards,
John