Skip to content
Snippets Groups Projects
Commit a6a15bb5 authored by Russell Jancewicz's avatar Russell Jancewicz
Browse files

update readme with principal creation

parent be3dd891
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,21 @@ It is advised that kadmin_local is used for rapid unpacked iteration, other task
##Examples:
###Principal Creation:
```python
>>>
>>> # ank, addprinc, add_principal are all aliases for principal creation
>>> # omitting a password or setting to None results in a randomized key
>>> # kadm.ank(principal [, password|None] [, db_args=db_args])
>>>
>>> kadm.ank("user@EXAMPLE.COM", "correcthorsebatterysaple")
>>> kadm.addprinc("user@EXAMPLE.COM", None)
>>> #
>>> kadm.add_principal("user@EXAMPLE.COM", None, db_args={'dn':'uid=user,ou=people,dc=example,dc=com'})
>>>
```
###Principal Attributes:
```python
>>> princ = kadm.getprinc("user@EXAMPLE.COM")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment