Hi
I am calling http://localhost:8080/fortress-rest-1.0.1/rbacCreate/ using
BASIC auth with the demoUser4 from samples which was added applaying
FortressRestServerPolicy.xml!
In the test files there is a sample file called createSession.xml
<FortRequest>
<contextId>HOME</contextId>
<entity xsi:type="user"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<userId>emtestuser1</userId>
<password>112</password>
<password>97</password>
<password>115</password>
<password>115</password>
<password>119</password>
<password>111</password>
<password>114</password>
<password>100</password>
</entity>
</FortRequest>
I adapted this to my needs
<FortRequest>
<contextId>HOME</contextId>
<entity xsi:type="user"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<userId>test</userId>
<password>password</password>
</entity>
</FortRequest>
I get back alltough user test is in directory and password is correct
<FortResponse>
<errorCode>1009</errorCode>
<errorMessage>assertContext detected null entity for method
[org.apache.directory.fortress.core.impl.UserP.createSession], error
code [1009]</errorMessage>
<entity xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:nil="true"/>
<isAuthorized xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:nil="true"/>
<session xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:nil="true"/>
</FortResponse>
Tried this
<FortRequest>
<contextId>HOME</contextId>
<entity xsi:type="user"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<userId>test</userId>
<password>112</password>
<password>97</password>
<password>115</password>
<password>115</password>
<password>119</password>
<password>111</password>
<password>114</password>
<password>100</password>
</entity>
</FortRequest>
Session is created successfully. Why ? None of these passwords do match
or are valid ? What am i missing ?
thx
LINZ AG für Energie, Telekommunikation, Verkehr und Kommunale Dienste
A-4021 Linz, Wiener Straße 151, Postfach 1300, Tel. +43/732/3400-0, E-Mail:
[email protected]