While implementing an postgresql backend to samba, it kept failing to load the .so file. But, at a certain moment with the debug-level higher than 3, it suddenly loaded it. This was for smbd, pdbedit, smbpasswd et al. Environment: It is the default FreeBSD port of net/samba-devel, which is the 3.0.0 release version, on a FreeBSD 4.8 system. This port did not load the CUPS bindings and didn't link libiconv. Each try it throw a couple of errors complaining that US-ASCII.so couldn't be loaded. After testing, and compiling samba with libiconv support, the loading of the .so files succeeded without problems. I have informed the maintainer of the FreeBSD port about this behaviour, telling him to use libiconv by default for this port. This PR is entered for your information.
Can you tell me up to what point the module loading worked? Debug output (at level 2) would be nice.
This is the debug info on level 2 (level 3 follows) -bash-2.05b# smbd -i -d 2 smbd version 3.0.0 started. Copyright Andrew Tridgell and the Samba Team 1992-2003 uid=0 gid=0 euid=0 egid=0 Processing section "[homes]" Conversion from UCS-2LE to UTF-8 not supported Error trying to resolve symbol 'init_module' in /usr/local/etc/charset/CP850.so: Cannot open "/usr/local/etc/charset/US-ASCII.so" Conversion from UCS-2LE to CP850 not supported Conversion from UTF-8 to UCS-2LE not supported Conversion from UTF-8 to ASCII not supported Error trying to resolve symbol 'init_module' in /usr/local/etc/charset/CP850.so: Cannot open "/usr/local/etc/charset/UTF-8.so" Conversion from UTF-8 to CP850 not supported Conversion from UTF-8 to UTF8 not supported Conversion from ASCII to UTF-8 not supported Error trying to resolve symbol 'init_module' in /usr/local/etc/charset/CP850.so: Cannot open "/usr/local/etc/charset/US-ASCII.so" Conversion from ASCII to CP850 not supported Error trying to resolve symbol 'init_module' in /usr/local/etc/charset/CP850.so: Cannot open "/usr/local/etc/charset/US-ASCII.so" Conversion from CP850 to UCS-2LE not supported Module '/usr/local/etc/charset/CP850.so' loaded Conversion from CP850 to UTF-8 not supported Conversion from UTF8 to UTF-8 not supported added interface ip=192.168.10.33 bcast=192.168.10.255 nmask=255.255.255.0 added interface ip=192.168.1.248 bcast=192.168.1.255 nmask=255.255.255.0 convert_string_allocate: Conversion not supported. convert_string_allocate: Conversion not supported. file_init: Information only: requested 10000 open files, 3500 are available. Registered MSG_REQ_POOL_USAGE Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED waiting for a connection No builtin backend found, trying to load plugin Error trying to resolve symbol 'init_module' in /usr/local/etc/pdb/pgsql.so: Cannot open "/usr/local/etc/charset/US-ASCII.so" No builtin nor plugin backend for pgsql found Loading pgsql:pgsql failed!
This is the debug info on level 3: Script started on Wed Nov 12 10:19:55 2003 get_current_groups: user is in 8 groups: 0, 0, 2, 3, 4, 5, 20, 31 smbd version 3.0.0 started. Copyright Andrew Tridgell and the Samba Team 1992-2003 uid=0 gid=0 euid=0 egid=0 lp_load: refreshing parameters Initialising global parameters params.c:pm_process() - Processing configuration file "/usr/local/etc/smb.conf" Processing section "[global]" Processing section "[homes]" adding IPC service adding IPC service Error loading module '/usr/local/etc/charset/UTF-8.so': Cannot open "/usr/local/etc/charset/UTF-8.so" Conversion from UCS-2LE to UTF-8 not supported Error loading module '/usr/local/etc/charset/US-ASCII.so': Cannot open "/usr/local/etc/charset/US-ASCII.so" Module '/usr/local/etc/charset/CP850.so' loaded Error loading module '/usr/local/etc/charset/UTF-8.so': Cannot open "/usr/local/etc/charset/UTF-8.so" Conversion from UTF-8 to UCS-2LE not supported Error loading module '/usr/local/etc/charset/US-ASCII.so': Cannot open "/usr/local/etc/charset/US-ASCII.so" Error loading module '/usr/local/etc/charset/UTF-8.so': Cannot open "/usr/local/etc/charset/UTF-8.so" Error loading module '/usr/local/etc/charset/US-ASCII.so': Cannot open "/usr/local/etc/charset/US-ASCII.so" Conversion from UTF-8 to ASCII not supported Error loading module '/usr/local/etc/charset/UTF-8.so': Cannot open "/usr/local/etc/charset/UTF-8.so" Conversion from UTF-8 to CP850 not supported Error loading module '/usr/local/etc/charset/UTF-8.so': Cannot open "/usr/local/etc/charset/UTF-8.so" Conversion from UTF-8 to UTF8 not supported Error loading module '/usr/local/etc/charset/US-ASCII.so': Cannot open "/usr/local/etc/charset/US-ASCII.so" Error loading module '/usr/local/etc/charset/US-ASCII.so': Cannot open "/usr/local/etc/charset/US-ASCII.so" Error loading module '/usr/local/etc/charset/UTF-8.so': Cannot open "/usr/local/etc/charset/UTF-8.so" Error loading module '/usr/local/etc/charset/US-ASCII.so': Cannot open "/usr/local/etc/charset/US-ASCII.so" Conversion from ASCII to UTF-8 not supported Error loading module '/usr/local/etc/charset/US-ASCII.so': Cannot open "/usr/local/etc/charset/US-ASCII.so" Error loading module '/usr/local/etc/charset/US-ASCII.so': Cannot open "/usr/local/etc/charset/US-ASCII.so" Error loading module '/usr/local/etc/charset/US-ASCII.so': Cannot open "/usr/local/etc/charset/US-ASCII.so" Error loading module '/usr/local/etc/charset/US-ASCII.so': Cannot open "/usr/local/etc/charset/US-ASCII.so" Error loading module '/usr/local/etc/charset/UTF-8.so': Cannot open "/usr/local/etc/charset/UTF-8.so" Conversion from CP850 to UTF-8 not supported Error loading module '/usr/local/etc/charset/US-ASCII.so': Cannot open "/usr/local/etc/charset/US-ASCII.so" Error loading module '/usr/local/etc/charset/UTF-8.so': Cannot open "/usr/local/etc/charset/UTF-8.so" Conversion from UTF8 to UTF-8 not supported Error loading module '/usr/local/etc/charset/US-ASCII.so': Cannot open "/usr/local/etc/charset/US-ASCII.so" added interface ip=192.168.10.33 bcast=192.168.10.255 nmask=255.255.255.0 added interface ip=192.168.1.248 bcast=192.168.1.255 nmask=255.255.255.0 convert_string_allocate: Conversion not supported. convert_string_allocate: Conversion not supported. file_init: Information only: requested 10000 open files, 3500 are available. loaded services Registered MSG_REQ_POOL_USAGE Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED waiting for a connection No builtin backend found, trying to load plugin Module '/usr/local/etc/pdb/pgsql.so' loaded Connecting to database server, host: dbrelay.barnet.com.au, user: mail, password: mail, database: mail, port: 5432 convert_string_allocate: Conversion not supported. convert_string_internal: Conversion not supported. [...]
Can you put the source of your backend up here as an attachment - this is a weird issue indeed, and I suspect that the error is in the source code of the module somehow.
Created attachment 271 [details] PostgreSQL authentication backend for Samba 3.0.0
this has been fixed in latest CVS, will be in 3.0.1
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.