hi


But caching is disabled (as in the default config, cache = no) and still unix module fails to load on server startup or check config (the last lines):
Module: Loaded Pam pam: pam_auth = "radiusd"
Module: Instantiated pam (pam) radiusd.conf[545] Failed to link to module 'rlm_unix': file not found

ok, that's on another level, it can't even link the module.



Interesting is that it does find the file (from a strace output) but it fails on something else, I thought it fails on accessing shadow beeing run as a non-privileged user.

i'd suppose that i'd complain later in that case but i'm not sure. anyway, if you want to test it, run as root 'radiusd -s -X'. in that case, the server will execute with root rights. so, it should be able to read everything. compare the outputs if it works. if it does not, the problem is obviously on the system level.



Here are the relevant part of the strace output:
[pid  8849] access("/usr/lib/rlm_unix.so", R_OK) = 0
[pid  8849] open("/usr/lib/rlm_unix.so", O_RDONLY) = 3
[pid  8849] read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20?\0\000"..., 
512) = 512
[pid  8849] fstat64(3, {st_mode=S_IFREG|0755, st_size=53892, ...}) = 0
[pid  8849] mmap2(NULL, 107232, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40243000
[pid  8849] mmap2(0x4024f000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 
0xb) = 0x4024f000
[pid  8849] mmap2(0x40251000, 49888, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40251000
[pid  8849] close(3)                    = 0
[pid  8849] mprotect(0x40243000, 49152, PROT_READ|PROT_WRITE) = 0
[pid  8849] munmap(0x40243000, 107232)  = 0
[pid  8849] time(NULL)                  = 1079964365
[pid  8849] write(1, "radiusd.conf[545] Failed to link"..., 71) = 71

Pretty strange huh ? :)

hmm, try 'ldd rlm_unix.so' and see if it finds everything linked withing the module itself.




ciao
artur





- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to