Skip to content

Commit

Permalink
auth3: Remove auth_skel.c
Browse files Browse the repository at this point in the history
Authentication is a very complex topic, and someone who is able to
write a custom auth module turning a struct auth_usersupplied_info
into a struct auth_serversupplied_info should be able to live without
this skeleton module.

This module also gave an example to load a secondary authentication
module via a module parameter (the call to load_module()). We have
abandoned this practice, and since the "auth methods" parameter has
gone we don't use this anymore internally.

Signed-off-by: Volker Lendecke <[email protected]>
Reviewed-by: Jeremy Allison <[email protected]>
  • Loading branch information
vlendec authored and jrasamba committed Apr 19, 2021
1 parent 1a696c9 commit 8b6c6fd
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 130 deletions.
31 changes: 0 additions & 31 deletions examples/auth/Makefile

This file was deleted.

77 changes: 0 additions & 77 deletions examples/auth/auth_skel.c

This file was deleted.

10 changes: 0 additions & 10 deletions examples/auth/wscript_build

This file was deleted.

2 changes: 1 addition & 1 deletion source3/wscript
Original file line number Diff line number Diff line change
Expand Up @@ -1912,7 +1912,7 @@ main() {
default_static_modules.extend(['charset_weird'])
default_shared_modules.extend(['perfcount_test',
'vfs_skel_opaque', 'vfs_skel_transparent', 'vfs_shadow_copy_test',
'auth_skel', 'pdb_test',
'pdb_test',
'vfs_fake_dfq',
'gpext_security', 'gpext_registry', 'gpext_scripts'])

Expand Down
1 change: 0 additions & 1 deletion source3/wscript_build
Original file line number Diff line number Diff line change
Expand Up @@ -1410,7 +1410,6 @@ bld.RECURSE('passdb')
bld.RECURSE('rpc_server')
bld.RECURSE('script')
bld.RECURSE('winbindd')
bld.RECURSE('../examples/auth')
bld.RECURSE('../examples/libsmbclient')
bld.RECURSE('../examples/pdb')
bld.RECURSE('../examples/VFS')
Expand Down
10 changes: 0 additions & 10 deletions testsuite/unittests/test_lib_util_modules.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,6 @@ static int teardown(void **state)
return 0;
}

static void test_samba_module_probe(void **state)
{
NTSTATUS status;

status = smb_probe_module("auth", "skel");
assert_true(NT_STATUS_IS_OK(status));
}

static void test_samba_module_probe_dummy(void **state)
{
const char *module_env;
Expand Down Expand Up @@ -63,8 +55,6 @@ static void test_samba_module_probe_slash(void **state)

int main(void) {
const struct CMUnitTest tests[] = {
cmocka_unit_test_teardown(test_samba_module_probe,
teardown),
cmocka_unit_test_teardown(test_samba_module_probe_dummy,
teardown),
cmocka_unit_test_teardown(test_samba_module_probe_slash,
Expand Down

0 comments on commit 8b6c6fd

Please sign in to comment.