D.58. tarantella passcache new

语法

tarantella passcache new {
                         { --person pobj | --anon | --ldap }
                           --resource resource 
                           --resuser resuser 
                         [ --respass respass ]
                         } | --file file

描述

向应用服务器密码缓存中添加条目。

下表显示了此命令的可用选项。

选项

描述

--person

指定要为其创建密码缓存条目的用户配置文件对象的名称。

--anon

为匿名用户创建密码缓存条目。

--ldap

为某个服务对象创建密码缓存条目。

--resource

指定密码缓存条目应用到的应用服务器、Microsoft Windows 域或服务对象的名称。

名称可以是下列项之一:

--resuser

标识资源的用户名。

--respass

指定与 --resuser 关联的密码。

如果省略了此选项,则会提示您输入密码。

--file

指定包含要添加到密码缓存的条目的一个文件。

注意

请务必将包含空格的任何对象名称用引号引起来,例如 "o=示例"

示例

以下示例在由应用服务器对象 prague 代表的应用服务器上为 SGD 用户 Indigo Jones 创建密码缓存条目。

$ tarantella passcache new \
--person "o=示例/cn=Indigo Jones" \
--resource "o=appservers/cn=prague" \
--resuser indigo --respass rainbow

以下示例在应用服务器 paris.example.com 上为匿名用户创建密码缓存条目,提示输入密码。

$ tarantella passcache new --anon --resuser \
--resource .../_dns/paris.example.com

以下示例为 mainldap 服务对象(这是一个 LDAP 服务对象)创建密码缓存条目。

$ tarantella passcache new \
--ldap --resource mainldap \
--resuser cn=sgd-user,cn=Users,dc=example,dc=com \
--respass rainbow

以下示例为 east 服务对象(这是一个 Active Directory 服务对象)创建密码缓存条目。

$ tarantella passcache new \
--ldap --resource east \
--resuser admin@example.com --respass rainbow