<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[ldap / AD integration causing crash in 2.2.7]]></title><description><![CDATA[<p dir="auto">I have a new install of 2.2.7 which I'm attempting to get working with my older MS 2008R2 AD server.</p>
<p dir="auto">With the original source it would successfully connect and retrieve all the objects, adds all users and updates them. It failed all groups with:<br />
netxms:2018.07.23 16:24:11.188 *D* LDAPConnection::fillLists(): Found dn: CN=Admins,OU=Groups,DC=MY,DC=COMPANY,DC=COM<br />
netxms:2018.07.23 16:24:11.188 *D* LDAPConnection::fillLists(): Unknown object is not added: dn: CN=Admins,OU=Groups,DC=MY,DC=COMPANY,DC=COM, login name: (null), full name: (null), description: (null)</p>
<p dir="auto">I noticed that line 619 of ldap.cpp was checking if objectClass matches LdapGroupClass from the server config but also if it had m_loginName defined.. This seemed off to me.. groups have no loginname attribute.. at least in my AD. I removed that check and it did add the groups but crashes the entire application before it reaches UpdateLDAPGroup in userdb.cpp I belive.. still digging through that. It does update users but never reaches the groups. The total number of users added and updated are roughly what I expected for my server.</p>
<p dir="auto">The crash logs are:<br />
Jul 24 17:13:18 netxms-test kernel: $MAIN/WRK[19997]: segfault at 0 ip 00007f93a0e3aec4 sp 00007f93944cab18 error 4 in libnetxms.so.2.0.0[7f93a0dec000+6c000]<br />
Jul 24 17:13:18 netxms-test systemd: netxmsd.service: main process exited, code=killed, status=11/SEGV<br />
Jul 24 17:13:18 netxms-test systemd: Unit netxmsd.service entered failed state.<br />
Jul 24 17:13:18 netxms-test systemd: netxmsd.service failed.</p>
<p dir="auto">So now the question.. does anyone have LDAP working to a MS 2008R2 AD server with 2.2.4+?</p>
]]></description><link>https://forum.netxms.org/topic/5651/ldap-ad-integration-causing-crash-in-2.2.7</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 13:08:59 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/5651.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 24 Jul 2018 18:44:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ldap / AD integration causing crash in 2.2.7 on Tue, 24 Jul 2018 19:03:29 GMT]]></title><description><![CDATA[<p dir="auto">Update.. seems the server config item 'LdapMappingName' is used for m_loginName. I was using 'mail' for the value not realizing at first that it was checking this against the groups too. Once I reverted to the original code and recompiled then set LdapMappingName  to 'name' everything worked. I do however want my users to login with their email address.. Is this now an enhancement request for 2.2.8?</p>
]]></description><link>https://forum.netxms.org/post/24610</link><guid isPermaLink="true">https://forum.netxms.org/post/24610</guid><dc:creator><![CDATA[scomoletti]]></dc:creator><pubDate>Tue, 24 Jul 2018 19:03:29 GMT</pubDate></item></channel></rss>