Subject: Re: Latest citadel easyinstall do not work
Thu Jul 28 2016 22:08:41 EDT from IGnatius T Foobar @ Uncensored Subject: Re: Latest citadel easyinstall do not work
Unfortunately your strace only showed citserver going into the background and then dying. But I see in your message that you had a segfault. Since you seem to know how to strace, is it a good guess that you know how to run gdb as well? If so, please run citserver in the foreground, in the debugger, and print out a stack trace when it crashes during setup.
If we can nail it down to a specific bug in the code (looks like something related to vcard parsing) I can push a fix to Easy Install pretty quickly.
Okay, so here's the backtrace I ran in gdb (see attached file). Please let me know if you need mor / detailed output from me.
citserver: libcurl/7.26.0 OpenSSL/1.0.1f zlib/1.2.8 c-ares/1.7.5
[New Thread 0x7ffff1d1b700 (LWP 22476)]
[New Thread 0x7ffff1c1a700 (LWP 22477)]
citserver: New client socket 39
citserver: Session (citadel-UDS) started via local socket UID:0.
citserver: Converted <citadel> to <citadel;;;;>
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff1d1b700 (LWP 22476)]
__strcasecmp_l_avx () at ../sysdeps/x86_64/multiarch/strcmp-sse42.S:165
165 ../sysdeps/x86_64/multiarch/strcmp-sse42.S: File or directory not found.
#0 __strcasecmp_l_avx () at ../sysdeps/x86_64/multiarch/strcmp-sse42.S:165
#1 0x0000000000422c97 in CtdlUserGoto (where=0x7ffff1d12b00 "0000000009.My Citadel Config", display_result=0, transiently=1, retmsgs=0x0, retnew=0x0, retoldest=0x0, retnewest=0x0) at room_ops.c:814
#2 0x000000000042acbd in CtdlSubmitMsg (msg=0x7fffe8001280, recps=0x0, force=0x7ffff1d151e0 "0000000009.My Citadel Config", flags=0) at msgbase.c:2854
#3 0x000000000042df30 in CtdlWriteObject (req_room=0x4cbc66 "My Citadel Config", content_type=0x4cbc23 "text/x-vcard",
raw_message=0x7fffe8001180 "begin:vcard\r\nfn:citadel\r\nn:citadel;;;;\r\nadr:adr:;;_;_;_;00000;__\r\nemail;internet:citadel@nhaede-VirtualBox\r\nVERSION:2.1\r\nend:vcard\r\n", raw_length=133,
is_mailbox=0x7ffff1d16960, is_binary=0, is_unique=0, flags=0) at msgbase.c:4135
#4 0x00000000004a3e45 in vcard_write_user (u=0x7ffff1d16960, v=0x7fffe8001030) at modules/vcard/serv_vcard.c:692
#5 0x00000000004a4a78 in vcard_newuser (usbuf=0x7ffff1d16960) at modules/vcard/serv_vcard.c:923
#6 0x000000000041ac21 in PerformUserHooks (usbuf=0x7ffff1d16960, EventType=102) at serv_extensions.c:1364
#7 0x000000000041476a in create_user (newusername=0x7ffff1d17d10 "citadel", len=7, become_user=0) at user_ops.c:1133
#8 0x0000000000451fd2 in cmd_creu (cmdbuf=0x7ffff1d19d85 "citadel|password") at modules/ctdlproto/serv_user.c:218
#9 0x0000000000418873 in DLoader_Exec_Cmd (cmdbuf=0x7ffff1d19d80 "CREU citadel|password") at serv_extensions.c:298
#10 0x0000000000448c86 in do_command_loop () at modules/ctdlproto/serv_ctdlproto.c:72
#11 0x00000000004181b3 in worker_thread (blah=0x0) at sysdep.c:1453
#12 0x000000000043807f in CTC_backend (supplied_start_routine=0x417935 <worker_thread>) at threads.c:121
#13 0x00007ffff6d23184 in start_thread (arg=0x7ffff1d1b700) at pthread_create.c:312
#14 0x00007ffff595537d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
Subject: Re: Enabling LDAP Authentication
Tue Jul 05 2016 05:36:53 EDTfrom lodger @ Uncensored Subject: Enabling LDAP Authentication
I've set up and configured my Citadel server to do LDAP authentication. Logging in with regular users works pretty fine but somehow, the LDAP account I want to use as Citadel aide (administrator) will not show the Administration menu.
Do you use plain LDAP or an Active Directory variety? Like Microsoft Server or Samba4 running as AD? Because the section below only counts for AD. I wrote that howto, but it was a few years ago.
I have set the CN and SN and GECOS attributes according to this statement in the Citadel documentation:
- If Full Name of the user is set to Edward Xavier Ample, use that Full Name as System Admnistrator name.
- If First Name is Edward and Last Name is Ample, use both, as in “Edward Ample”.
- If and only if you did not set the above fields for any reason, then and only then use User Logon Name, such as example for the System Administrator name!
but still no cigar. Can someone help me sort this out?
You need to run the citadel setup command and provide the Aide username there. Only if you did that will the user become aide.
What is the username you want to use as aide? And does it exist in the LDAP? You can't just make up a username in the ldap/ad scenario, it has to exist.
First world problems and I am partly responsible for fixing them, just wanted to write them down here:
Starting this week, I can no longer access uncensored with the latest version of Opera on OSX 10.10.
Also, Safari (latest verstion for OSX 10.10) does not want to connect for security reasons.
Firefox, also latest version, does connect and works rather fast. Which makes me realise that I connected to the non-ssl site. Gnarf...
Subject: Re: Latest citadel easyinstall do not work
Thanks for sending the backtrace. It looks like a null pointer comparison in the new config system. I've fixed the issue and uploaded the fixed version to Easy Install. Please try it again and let us know if it worked!
Ok, it seems that only the SSL part does not work for me in all of my browsers. Opera, Safari and Firefox.
The non-ssl version loads flawlessly. So it is not an HTML issue I need to fix.
Speaking of HTML: Since there is some delay at the university, my final exams are not yet finished and so the html rework has not begun. I expect that I have finally passed all exams by the end of coming august.
I just wanted to say thanks for this beautiful software, running without problems for a year now.