blob: d835ef1b342afe39b40b3f23d89050b474420d97 [file] [log] [blame]
Title: 2.4 - SimpleKdcServer
NavPrev: 2.3-kdcserver.html
NavPrevText: 2.3 - KdcServer
NavUp: 2-kerberos-library.html
NavUpText: 2 - Kerberos library
NavNext: 3-tools.html
NavNextText: 3 - tools
Notice: Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
.
http://www.apache.org/licenses/LICENSE-2.0
.
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
# 2.4 - SimpleKdcServer
A simplified Kdc server. It can be imported by other project to work as a kdc server.
### Kdc server
</pre>
* Start simple kdc server.
<pre>
start();
</pre>
* Set KDC realm for ticket request
<pre>
setKdcRealm(realm);
</pre>
* Set KDC host.
<pre>
setKdcHost(kdcHost);
</pre>
* Set KDC tcp port.
<pre>
setKdcTcpPort(kdcTcpPort);
</pre>
* Set KDC udp port. Only makes sense when allowUdp is set.
<pre>
setKdcUdpPort(kdcUdpPort);
</pre>
* Set to allow TCP or not.
<pre>
setAllowTcp(allowTcp);
</pre>
* Set to allow UDP or not.
<pre>
setAllowUdp(allowUdp);
### Kadmin
</pre>
* Create principle with principal name.
<pre>
createPrincipal(principal);
</pre>
* Add principle with principal name and password.
<pre>
createPrincipal(principal, password);
</pre>
* Create principles with principal names.
<pre>
createPrincipals(principals);
</pre>
* Creates principals and export their keys to the specified keytab file.
<pre>
createAndExportPrincipals(keytabFile principals);
</pre>
* Delete principle with principal name.
<pre>
deletePrincipal(principal);
</pre>
</pre>
* Delete principles with principal names.
<pre>
deletePrincipals(principals);
</pre>
</pre>
* Export principles to keytab file.
<pre>
exportPrincipals(keytabFile);
</pre>