1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

s4-rpc: added dcesrv_call_account_name()

this will be used by openchange

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Tue Mar 15 06:14:00 CET 2011 on sn-devel-104
This commit is contained in:
Andrew Tridgell 2011-03-15 14:43:24 +11:00
parent b2b41a5087
commit 7c83f69383
2 changed files with 13 additions and 0 deletions

View File

@ -1737,3 +1737,11 @@ _PUBLIC_ bool dcesrv_call_authenticated(struct dcesrv_call_state *dce_call)
level = security_session_user_level(dce_call->conn->auth_state.session_info, NULL);
return level >= SECURITY_USER;
}
/**
* retrieve account_name for a dce_call
*/
_PUBLIC_ const char *dcesrv_call_account_name(struct dcesrv_call_state *dce_call)
{
return dce_call->context->conn->auth_state.session_info->info->account_name;
}

View File

@ -393,5 +393,10 @@ _PUBLIC_ struct cli_credentials *dcesrv_call_credentials(struct dcesrv_call_stat
*/
_PUBLIC_ bool dcesrv_call_authenticated(struct dcesrv_call_state *dce_call);
/**
* retrieve account_name for a dce_call
*/
_PUBLIC_ const char *dcesrv_call_account_name(struct dcesrv_call_state *dce_call);
#endif /* SAMBA_DCERPC_SERVER_H */