Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kadmin, python-kadmin-rs: implement principal utilities #53

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

rissson
Copy link
Contributor

@rissson rissson commented Nov 30, 2024

No description provided.

Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
max_renewable_life: Duration,
last_success: DateTime<Utc>,
last_failed: DateTime<Utc>,
/// Max renewable ticket life
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// Max renewable ticket life
/// Maximum renewable ticket life

last_password_change: Option<DateTime<Utc>>,
/// When the password expires
password_expiration: Option<DateTime<Utc>>,
/// Max ticket life
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// Max ticket life
/// Maximum ticket life

/// A kadm5 principal
#[derive(Debug)]
#[allow(dead_code)] // TODO: remove me once implemented
#[derive(Debug, Getters)]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#[derive(Debug, Getters)]
#[derive(Clone, Debug, Getters)]

}

/// Create the principal
pub fn create<K: KAdminImpl>(&self, kadmin: &K) -> Result<()> {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
pub fn create<K: KAdminImpl>(&self, kadmin: &K) -> Result<()> {
pub fn create<K: KAdminImpl>(&self, kadmin: &K) -> Result<Principal> {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant