smbldap-usercert-tools: How to use


Introduction

CommandFunction
smbldap-usercertAdd/Modify/Delete objectClass and attribute (support user mode)

smbldap-usercert

Usage

# add public key
  Usage: /usr/local/sbin/smbldap-usercert [-a] username publickey
    set: smbldap-usercert user1 "ssh-rsa AAAAB3..."
    add: smbldap-usercert -a user1 "ssh-rsa AAAAB3..."

# delete public key
  Usage: /usr/local/sbin/smbldap-usercert -d username [publickey]
    all: smbldap-usercert -d user1
    one: smbldap-usercert -d user1 "ssh-rsa AAAAB3..."

# help
  -h,? show this help message

Set a public key

# smbldap-usercert user1 "ssh-rsa AAAAB3..."
$ smbldap-usercert user1 "ssh-rsa AAAAB3..."

Add a public key

This means to support managing multiple public keys.

# smbldap-usercert -a user1 "ssh-rsa AAAAB3..."
$ smbldap-usercert -a user1 "ssh-rsa AAAAB3..."

Delete all public keys

# smbldap-usercert -d user1
$ smbldap-usercert -d user1

Delete the specified public key

# smbldap-usercert -d user1 "ssh-rsa AAAAB3..."
$ smbldap-usercert -d user1 "ssh-rsa AAAAB3..."