[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Freeipmi-devel] ipmi_lan_open_session() question
From: |
James Laros |
Subject: |
[Freeipmi-devel] ipmi_lan_open_session() question |
Date: |
Tue, 27 Sep 2005 15:51:43 -0600 |
User-agent: |
Mutt/1.5.9i |
I have a question about the usage of ipmi_lan_open_session.
First off I don't see it used in any of the utilities
that come with the distro? Any reason?
I was doing things more "by hand" as in ipmipower until
I noticed this call.
More specific question if I use the call as follows the
Activate Session Application Response returns a completion
code of 0xcc (Invalid data field in request)
Wasn't sure if I need to pass in something for session_seq_num
or session_id??? In the request message the session_id seems be
set properly to a temp session id, session_seq is 0 which should be ok yes?
Note that if I run it with MD5 as an auth type and provide username
and password I never get an app response.
By the way it seems to return < 0 but set errno to Success??
------------------------------
u_int8_t auth_type;
u_int8_t *username = "root";
u_int8_t *password = "yada";
u_int8_t priv;
priv = IPMI_PRIV_LEVEL_OPERATOR;
u_int32_t *session_seq_num;
u_int32_t *session_id;
session_seq_num = (u_int32_t *)malloc(sizeof(u_int32_t));
session_id = (u_int32_t *)malloc(sizeof(u_int32_t));
auth_type = IPMI_SESSION_AUTH_TYPE_MD5;
if (ipmi_lan_open_session(conn->fd,
(struct sockaddr *)&(conn->target_addr),
sizeof(struct sockaddr_in),
IPMI_SESSION_AUTH_TYPE_NONE,
// auth_type,
username,
// password,
// sizeof(password),
NULL,
0,
INITIAL_OUTBOUND_SEQ_NUM,
priv,
session_seq_num,
session_id) < 0 ) {
fprintf(stderr, "Error: ipmi_lan_open_session %s\n", strerror(errno));
return -1;
}
-------------------------------------------
Thanks if anyone can help.
Jim
--
______________________________________________________________
James Laros ............................... address@hidden
Dept. 09224
Scalable Systems Integration .............. PHONE:505.845.8532
Sandia National Labs ........................ FAX:505.844.9297
______________________________________________________________
Is someone getting the best of you?
- Foo Fighters
- [Freeipmi-devel] ipmi_lan_open_session() question,
James Laros <=
- Re: [Freeipmi-devel] ipmi_lan_open_session() question, Albert Chu, 2005/09/27
- Re: [Freeipmi-devel] ipmi_lan_open_session() question, Albert Chu, 2005/09/27
- Re: [Freeipmi-devel] ipmi_lan_open_session() question, Albert Chu, 2005/09/27
- Re: [Freeipmi-devel] ipmi_lan_open_session() question, Albert Chu, 2005/09/27
- Re: [Freeipmi-devel] ipmi_lan_open_session() question, Albert Chu, 2005/09/29