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

Create unit tests suite from commented out sections #9

Closed
4 tasks
Jnchi opened this issue Nov 27, 2018 · 3 comments
Closed
4 tasks

Create unit tests suite from commented out sections #9

Jnchi opened this issue Nov 27, 2018 · 3 comments

Comments

@Jnchi
Copy link
Contributor

Jnchi commented Nov 27, 2018

Postman

  • Add requests for client_credentials workflow for libnss module

Resources:

See also:

@Jnchi Jnchi modified the milestones: 0.0.1, 0.0.2 Nov 30, 2018
@Jnchi
Copy link
Contributor Author

Jnchi commented Dec 6, 2018

@Jnchi
Copy link
Contributor Author

Jnchi commented Dec 6, 2018

@Jnchi Jnchi pinned this issue Feb 4, 2019
@Jnchi Jnchi unpinned this issue Feb 21, 2019
@Jnchi
Copy link
Contributor Author

Jnchi commented Mar 14, 2019

#include <dlfcn.h>
#include <stdio.h>
#include <stdlib.h>

int main(int argc, const char* argv[])
{
    if ( argc != 2 )
    {
	printf("Usage: ./dlopentest <path_to_pam_module>\n");
	exit(1);
    }
    
    void *libhandle = dlopen(argv[1], RTLD_NOW);
    if ( libhandle == NULL )
    {		 
		printf("%s",dlerror());
		exit(1);
    }
    void* sym = dlsym(libhandle,"pam_sm_authenticate");
    if ( sym == NULL )
    {
	    printf("%s",dlerror());
	    exit(1);  
    } 
    sym = dlsym(libhandle,"pam_sm_setcred");  
    if ( sym == NULL )  
    {				            
	    printf("%s",dlerror());             
	    exit(1);	
    }
    dlclose(libhandle);
}

Source: https://github.com/CyberNinjas/pam_aad/blob/6b547f4aac02821b6a4840098c71fcd83af389f4/dev/dlopentest.c

@Jnchi Jnchi closed this as completed in e2e46ee Mar 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant