SeLLeRoNe
Super Moderator
Hi,
i was trying to write an api for craete a DB for an existing specific user but it doesnt seems to work.
Ive set as username admin|user with the correct admin password but doesnt work.
If i use just admin it work and create the db for the admin user and thats is what i dont want
So, ive tryed to log into directadmin directly with admin|user but doenst log, no bad password error, just reload the login page...
On debug level 2000 on DA i can see this:
and if i cat the session file
Anyone have any suggestion?
Thanks
i was trying to write an api for craete a DB for an existing specific user but it doesnt seems to work.
Ive set as username admin|user with the correct admin password but doesnt work.
If i use just admin it work and create the db for the admin user and thats is what i dont want

So, ive tryed to log into directadmin directly with admin|user but doenst log, no bad password error, just reload the login page...
On debug level 2000 on DA i can see this:
Code:
Sockets::handshake - begin
Sockets::handshake - end
/CMD_LOGIN
0: Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
1: Accept-Encoding: gzip, deflate
2: Accept-Language: it-it,it;q=0.8,en-us;q=0.5,en;q=0.3
3: Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
4: Connection: keep-alive
5: Content-Length: 86
6: Content-Type: application/x-www-form-urlencoded
7: Cookie: session=
8: Host: test.crazynetwork.it:2222
9: Referer: http://test.crazynetwork.it:2222/CMD_LOGIN
10: User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0) Gecko/20100101 Firefox/6.0
Post string: username=admin%7Cnagios&password=alvaruccio&submit.x=0&submit.y=0&referer=%2FCMD_LOGIN
Session file written: /usr/local/directadmin/data/sessions/da_sess_o2XRPFDN0QHAs2nf8tEyRYMCzbQA43Yq33FSITpGr5Qj7BPF4bDT9Xf663G87myA
Sockets::handshake - begin
Sockets::handshake - end
/
0: Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
1: Accept-Encoding: gzip, deflate
2: Accept-Language: it-it,it;q=0.8,en-us;q=0.5,en;q=0.3
3: Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
4: Connection: keep-alive
5: Cookie: session=o2XRPFDN0QHAs2nf8tEyRYMCzbQA43Yq33FSITpGr5Qj7BPF4bDT9Xf663G87myA
6: Host: test.crazynetwork.it:2222
7: Referer: http://test.crazynetwork.it:2222/CMD_LOGIN
8: User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0) Gecko/20100101 Firefox/6.0
and if i cat the session file
Code:
>cat /usr/local/directadmin/data/sessions/da_sess_o2XRPFDN0QHAs2nf8tEyRYMCzbQA43Yq33FSITpGr5Qj7BPF4bDT9Xf663G87myA
ip=89.97.218.90
key=oEd4fQLWVlDbxaoz90THX6NcAckFOjPAv0FYRa2uJFVEoKCxKfCpjaRrAC6WtUhm
passwd=YWx2YXJ1Y2Npbw==
username=admin|nagios
Anyone have any suggestion?
Thanks