Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,8 @@

# Generated
getdate.c

# distutils
MANIFEST
dist/
build/
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include *.h
include *.y
4 changes: 4 additions & 0 deletions PyKAdminErrors.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,12 @@ void PyKAdminError_init(PyObject *module) {
PyKAdminError_insert(module, KADM5_SETKEY3_ETYPE_MISMATCH, "SetKey3EnctypeMismatchError", "Mismatched enctypes for setkey3");
PyKAdminError_insert(module, KADM5_MISSING_KRB5_CONF_PARAMS, "MissingKrb5ConfParamsError", "Missing parameters in krb5.conf required for kadmin client");
PyKAdminError_insert(module, KADM5_XDR_FAILURE, "XDRFailureError", "XDR encoding error");
#ifdef KADM5_CANT_RESOLVE
PyKAdminError_insert(module, KADM5_CANT_RESOLVE, "CantResolveError", "");
#endif
#ifdef KADM5_PASS_Q_GENERIC
PyKAdminError_insert(module, KADM5_PASS_Q_GENERIC, "PasswordGenericError", "Database synchronization failed");
#endif

}

Expand Down
2 changes: 1 addition & 1 deletion kadmin.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ static PyKAdminObject *_kadmin_init_with_password(PyObject *self, PyObject *args

retval = kadm5_init_with_password(kadmin->context, client_name, password, service_name, params, struct_version, api_version, NULL, &kadmin->server_handle);
if (retval) {
printf("kadm5_init_with_password failure: %ld\n", retval);
PyKAdmin_RaiseKAdminError(retval, "kadm5_init_with_password");
PyKAdminObject_destroy(kadmin);
return NULL;
}
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
execute(spawn, (['bison', '-y', '-o', 'getdate.c', 'getdate.y'],))

setup(name='python-kadmin',
version='0.1',
description='Python module for kerberos admin (kadm5)',
url='https://github.com/russjancewicz/python-kadmin',
author='Russell Jancewicz',
Expand All @@ -27,7 +28,7 @@
"./PyKAdminIterator.c",
"./PyKAdminPrincipalObject.c",
"./PyKAdminPolicyObject.c",
"getdate.c"
"./getdate.c"
]
)
],
Expand Down