summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorBarry Jaspan <bjaspan@mit.edu>1993-11-06 21:22:50 +0000
committerBarry Jaspan <bjaspan@mit.edu>1993-11-06 21:22:50 +0000
commita45ac99d7c34181b3e011aae491e2e9bf89b95b2 (patch)
tree23d57f1a93159ef38e907d3ba2e6813cf51b88c7 /doc
parent596e2383228365df8ac870a3341ca3a5934acb7b (diff)
downloadkrb5-a45ac99d7c34181b3e011aae491e2e9bf89b95b2.tar.gz
krb5-a45ac99d7c34181b3e011aae491e2e9bf89b95b2.tar.xz
krb5-a45ac99d7c34181b3e011aae491e2e9bf89b95b2.zip
added init and destroy, OVSEC_KADM_INSUFFICIENT
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2796 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'doc')
-rw-r--r--doc/kadm5/api-funcspec.tex81
1 files changed, 81 insertions, 0 deletions
diff --git a/doc/kadm5/api-funcspec.tex b/doc/kadm5/api-funcspec.tex
index bb582300d5..89e942884f 100644
--- a/doc/kadm5/api-funcspec.tex
+++ b/doc/kadm5/api-funcspec.tex
@@ -395,6 +395,8 @@ operations requiring the ``add'' privilege.
operations requiring the ``modify'' privilege.
\item[* OVSEC_KADM_AUTH_DELETE] Caller is not authorized to perform
operations requiring the ``delete'' privilege.
+\item[* OVSEC_KADM_AUTH_INSUFFICIENT] Caller is not authorized to
+perform more than one of the operations required by the function.
\item[* OVSEC_KADM_BAD_DB] A database inconsistency was detected.
\item[OVSEC_KADM_DUP] The operation would create a duplicate principal or
policy.
@@ -495,6 +497,8 @@ policy, so the policy check is not performed.
\\
{\bf Function Name} & {\bf Authorization} & {\bf Operation} \\
+init & none & Open a connection with the ovsec_kadm library. \\
+destroy & none & Close the connection with the ovsec_kadm library. \\
create_principal & add & Create a new principal. \\
delete_principal & delete & Delete a principal. \\
modify_principal & modify & Modify the attributes of an existing
@@ -521,6 +525,83 @@ get_privs & none & Return the caller's admin server privileges.
perform the operation on itself; see the function's semantics for
details.}
+\subsection{ovsec_kadm_init}
+
+\begin{verbatim}
+ovsec_kadm_ret_t ovsec_kadm_init(char *client_name, char *pass,
+ char *service_name, char *realm)
+\end{verbatim}
+
+AUTHORIZATION REQUIRED: none
+
+Open a connection to the ovsec_kadm library and initialize any
+neccessary state information. This function behaves differently when
+called from local and remote clients.
+
+For remote clients, the semantics are:
+
+\begin{enumerate}
+\item Initializes all the com_err error tables defined by the Admin
+system.
+
+\item Acquire a Kerberos ticket for the specified service.
+
+\begin{enumerate}
+\item The ticket's client is client_name, which can be any valid
+Kerberos principal. If client_name does not include a realm, the
+default realm of the local host is used
+\item The ticket's service is service_name@realm. service_name must
+be one of the constants OVSEC_KADM_ADMIN_SERVICE or
+OVSEC_KADM_CHANGEPW_SERVICE.
+\item If realm is NULL, client_name's realm is used.
+\item The ticket is decoded with the password pass, which must be
+client_name's password. If pass is NULL, the user is prompted (via
+the tty) for a password.
+\end{enumerate}
+
+\item Create a GSS-API authenticated connection to the Admin server,
+using the just-acquired Kerberos ticket.
+\end{enumerate}
+
+For local clients, the function does nothing.
+
+RETURN CODES:
+
+\begin{description}
+\item[OVSEC_KADM_NO_SRV] No Admin server can be found for the
+specified realm.
+
+\item[OVSEC_KADM_RPC_ERROR] The RPC connection to the server cannot be
+initiated.
+\end{description}
+
+\subsection{ovsec_kadm_destroy}
+
+\begin{verbatim}
+ovsec_kadm_ret_t ovsec_kadm_destroy()
+\end{verbatim}
+
+AUTHORIZATION REQUIRED: none
+
+Close the connection to the Admin server and releases all related
+resources. This function behaves differently when called by local and
+remote clients.
+
+For remote clients, the semantics are:
+
+\begin{enumerate}
+\item Destroy the temporary credential cache created by
+ovsec_kadm_init.
+
+\item Tear down the GSS-API context negotiated with the server.
+
+\item Close the RPC connection.
+\end{enumerate}
+
+For local clients, this function does nothing.
+
+RETURN CODES:
+
\subsection{ovsec_kadm_create_principal}
\begin{verbatim}