Results 1 to 4 of 4

Thread: Please Help with Ldap

  1. #1
    jherington is offline Sugar Community Member
    Join Date
    Oct 2007
    Posts
    13

    Default Please Help with Ldap

    Hello,
    I have RHEL5 and did a clean bitrock 4.5.1g install, everything seemed to go just fine.

    1) I logged in as admin and configured openLdap in SugarCRM (using values I have gotten to work just fine in other apps that use my openLdap install).
    2) I had to do a yum install php-ldap.i386 which went fine.
    3) I located ldap.so in the /usr/lib/php/modules dir.
    4) I moved that ldap.so to the /opt/sugarcrm/php/lib/php/extensions/no-debug-non-zts-20020429/ (as per the extension dir= in /opt/sugarcrm/php/etc/php.ini).
    5) I added 'extension=ldap.so' to the /opt/sugarcrm/php/etc/php.ini (at the bottom right after the extension=json.so liine.
    5) I restarted the SugarCRM workstation.

    I still get 'LDAP Error: Extensions not loaded' when I try to login.

    Could this be a php version issue given what I explain was installed above...and this is a very clean install...nothing else has been installed on this box before or after SugarCRM.

    Do I need to specifically load any ldap service in RHEL services?

    Please help! Thanks in advance!

    [edit] I notice that the php version installed is 4.4.3 and when I did a yum I would suspect I got the latest version of php-ldap. would this cause a problem?[/edit]

    [edit]
    The following is the error I get the apache error log:

    Code:
    PHP Warning:  Unknown(): Unable to load dynamic library '/opt/sugarcrm/php/lib/php/extensions/no-debug-non-zts-20020429/ldap.so' - /opt/sugarcrm/php/lib/php/extensions/no-debug-non-zts-20020429/ldap.so: undefined symbol: OnUpdateLong in Unknown on line 0
    [/edit]

    [edit] I believe the problem may have something to do with the version of php-ldap which is 5.1.6 (I believe) and I found a post that said that OnUpdateLong is only found in version 5.x of php. Since the Apache error log references OnUpdateLong I am thinking a version mis-match may be the issue?? I have no idea how to proceed?? Should I update the php loaded by SugarCRM?? -or- How do I get my hands on a compatible version of ldap.so and other necessary supporing files? Here are the files installed according to the RHEL5 Message.log:
    Nov 30 06:52:26 itsa2 Installed: php-common.i386 5.1.6-15.el5
    Nov 30 06:52:26 itsa2 Installed: php-ldap.i386 5.1.6-15.el5[/edit]
    Last edited by jherington; 2007-12-01 at 03:06 AM.

  2. #2
    jherington is offline Sugar Community Member
    Join Date
    Oct 2007
    Posts
    13

    Default Re: Please Help with Ldap

    I solved this myself by learning how to upgrade php. As a .Net guy familiar with working with compiled binary code for Windows, I was at a loss when it came time to upgrading php on linux (RHEL5).

    I would think this is not an unusual problem/hurdle and one that the Linux community would be well served to better address. Although arguably sites like PHP, PECL and PEAR and product like PHPIZE do ultimately provide answers, a well explained walk though on how to update PHP for example would be a great addition to the knowledge base/wiki of any site providing PHP based products. Another related topic here is building php extensions (i.e. json.so), this to is tricky and would be a great addition to a sites HOW TO.

    As an outside observer and someone who is making the effort to include Linux and related "Open Source" products it almost seems like there is a self-defeating bias on the part of those long-time Linux pros who could otherwise provide direction to people like me in sites/formums like this. The bias is to say...I had to learn this without any help and that is how you are going to have to learn...Good Luck!

    And not-for-nothing as they say in South Philly but here is what one man thinks about the genius behind products like SugarCRM and the Open Source movement...

    The Open Source movement will be successful and market share gains will some day creep out of the low single digits (apart from Apache which does very well), if the Open Source model of true community development is well adheard to. If not adheard to, then in all likelyhood your products will eventually be eliminated by the current powers that be. But those powers can not destroy the dreams and ambitions of a whole community and if that community has patients and purpose then the payoff could be huge. Otherwise welcome to dog-eat-dog where currently only money buys your future and news flash...Bastardized Open Source products will never really be allowed to play with the big boys...Dream all you want...If you don't stay true to Open Source then you are playing into the hands of those companies you once dreamed of competing against and your legacy will amount to nothing more then a footnote.

    Work harder to get VC to understand what you once so completely belived in.

    Or...Good Luck!

    PS. Don't get me wrong I love free enterprise; true capitalism is one of the things that makes this country the greatest on earth!

  3. #3
    Join Date
    Feb 2007
    Location
    San Jose, CA
    Posts
    1,169

    Default Re: Please Help with Ldap

    Hi there,

    Your suggestion of "a well explained walk though on how to update PHP for example would be a great addition to the knowledge base/wiki of any site providing PHP based products" is great! Why don't you post your findings to the wiki so others can benefit from your experience?
    Susie Williams

  4. #4
    jherington is offline Sugar Community Member
    Join Date
    Oct 2007
    Posts
    13

    Default Re: Please Help with Ldap

    Yes Susie, you are of course correct and as such I did start the following wiki:

    http://www.sugarcrm.com/wiki/index.p...rsion_on_linux

    On another note regarding my previous rant. Has Sugar ever considered taking the existing reseller program and either modify or add to it with a class of pre-qualified/certified organizations based on staff, history, certifications and sales commitments; that would be provided very deep discounts (say $50 per year pro license). This is maybe just an example of the sort of creative thinking I was suggesting before. Detach the sales efforts out to those partners and require in return any number of community contributions from those partners (e.g. forum mod, developer time, regular sales forecasts, marketing funds pool, etc...)

    From my perspective your best long-term play is to not do things status quo i.e. money grab, but in stead play on the community concept, extend it but always remember the community will contribute if there is truly something in it from them. Sugar has the opportunity to define a community model that could in-and-of-itself redefine the open source movement.

    Ultimately I am just a businessman with a background in programming, I of course may be completely nuts to think about these opportunities but just can't help but believe that open source is definitely on to something and just now in its infancy. It’s not time to abandon the core ideas that got you here but maybe just rethink how to more deeply engage and manage the community.

    Ps. I don't know if it’s too late for zimbra but if not sugar may want to think about an app duo that could be huge. I would think Yahoo may even still be creative enough to listen to some new ideas given that little web search company they’re chasing behind...
    Last edited by jherington; 2007-12-10 at 06:30 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. LDAP: overwriteSugarUserInfo
    By chrismiller in forum Help
    Replies: 6
    Last Post: 2008-04-03, 01:31 PM
  2. LDAP Security?
    By damiangill in forum Help
    Replies: 2
    Last Post: 2007-10-05, 04:47 PM
  3. LDAP authentication
    By Moore in forum Help
    Replies: 4
    Last Post: 2007-08-03, 01:24 AM
  4. LDAP User Checkbox
    By trupoet in forum Installation and Upgrade Help
    Replies: 7
    Last Post: 2007-03-12, 03:57 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •