<join host="external.murkworks.com" login="n=bkc" nick="bkc" time="01:18:03.931Z"/>
<join host="c-71-236-161-195.hsd1.or.comcast.net" login="n=brian" nick="ryerpatch" time="02:18:39.148Z"/>
<join host="p5B20E862.dip.t-dialin.net" login="n=wolf" nick="wolf77" time="09:33:17.346Z"/>
<join host="vil35-2-82-236-174-106.fbx.proxad.net" login="n=perig" nick="perig" time="15:40:10.66Z"/>
<join host="62.232.6.162" login="n=XIRCProx" nick="dizzzz" time="16:58:57.209Z"/>
<message nick="dizzzz" time="16:59:18.308Z">[object Object]</message>
<part host="62.232.6.162" login="n=XIRCProx" nick="dizzzz" time="17:03:59.66Z"/>
<join host="212.98.174.137" login="n=scand" nick="newbie2" time="17:11:37.132Z"/>
<message nick="newbie2" time="17:11:45.243Z">hello</message>
<message nick="newbie2" time="17:11:50.92Z">i have a little question</message>
<message nick="newbie2" time="17:12:04.018Z">i want to change password of current user in db</message>
<message nick="newbie2" time="17:12:34.9Z">i'm using xmldb:change-user($username, $new-password, $user-groups, $home)</message>
<message nick="newbie2" time="17:12:57.28Z">it raise an exception: Invalid password for user ...</message>
<message nick="newbie2" time="17:13:48.85Z">can i prevent it?</message>
<message nick="newbie2" time="17:14:15.036Z">i tryed to user xmldb:login() with new password </message>
<message nick="newbie2" time="17:14:28.044Z">can you help me?</message>
<message nick="newbie2" time="17:15:06.266Z">other part of script</message>
<message nick="newbie2" time="17:15:06.786Z"> let $username := xmldb:get-current-user()</message>
<message nick="newbie2" time="17:15:06.806Z"> let $home := xmldb:get-user-home($username)</message>
<message nick="newbie2" time="17:15:06.836Z"> let $user-groups := xmldb:get-user-groups($username)</message>
<message nick="newbie2" time="17:22:52.649Z">the point is to save current session value</message>
<message nick="newbie2" time="17:22:57.436Z">and avoid user reconnect</message>
<message nick="newbie2" time="17:37:22.56Z">^(</message>
<message nick="wolf77" time="18:32:32.566Z">and the script is executing with the identity of the user you are trying to change?</message>
<join host="i188127.upc-i.chello.nl" login="n=DiZzZz" nick="DiZzZz" time="19:15:39.209Z"/>
<message nick="newbie2" time="19:31:25.554Z">yes!</message>
<message nick="newbie2" time="19:32:05.348Z">that exception... should it raise?</message>
<message nick="wolf77" time="19:32:10.445Z">that's a problem.</message>
<message nick="wolf77" time="19:33:09.035Z">you probably need to call xmldb:login() immediately after changing the password</message>
<message nick="wolf77" time="19:34:05.532Z">ah, instead of xmldb:login() try session:set-current-user()</message>
<message nick="newbie2" time="19:35:05.833Z">please tell me whats wrong</message>
<message nick="newbie2" time="19:35:07.986Z">xmldb:login(collection("/db/scripts")/*, $username, $new-password)</message>
<message nick="newbie2" time="19:35:13.404Z">it return false</message>
<message nick="newbie2" time="19:35:34.102Z">$username and $new-password is new values</message>
<message nick="wolf77" time="19:35:58.245Z">try session:set-current-user instead</message>
<message nick="newbie2" time="19:36:15.088Z">but i access database through web service</message>
<message nick="newbie2" time="19:36:24.01Z">will it work?</message>
<message nick="wolf77" time="19:36:31.259Z">through soap?</message>
<message nick="newbie2" time="19:36:33.913Z">yeah</message>
<message nick="wolf77" time="19:36:40.372Z">mmmh, no</message>
<message nick="newbie2" time="19:36:46.32Z">i knew it</message>
<message nick="newbie2" time="19:36:47.942Z">:(</message>
<message nick="wolf77" time="19:37:00.83Z">in that case, you probably need to execute the script as an admin user</message>
<message nick="newbie2" time="19:37:34.395Z">xmldb:login should be executed in context of admin user.. am i right?</message>
<message nick="wolf77" time="19:38:33.295Z">well, yes, if the script is executed via soap, you have no other choice</message>
<message nick="newbie2" time="19:39:41.398Z">but i've already changed the password</message>
<message nick="newbie2" time="19:39:47.666Z">i need just to check the result</message>
<message nick="newbie2" time="19:40:02.426Z">may be there is another way to check result of changing procedure</message>
<message nick="newbie2" time="19:40:35.481Z">xmldb:change-user return void</message>
<message nick="wolf77" time="19:40:55.168Z">maybe split it into 2 scripts? 1 for changing the password, 1 for checking its result.</message>
<message nick="newbie2" time="19:41:44.235Z">yeah, thx </message>
<message nick="newbie2" time="19:41:50.373Z">it is a good idea</message>
<part host="212.98.174.137" login="n=scand" nick="newbie2" reason="Read error: 110 (Connection timed out)" time="20:16:14.176Z"/>
<message nick="DiZzZz" time="20:51:36.618Z">hi pierrick...... el presidente</message>
<part host="i188127.upc-i.chello.nl" login="n=DiZzZz" nick="DiZzZz" reason="" time="21:09:43.465Z"/>
</xlog>