partkeepr / PartKeepr

Open Source Inventory Management
http://www.partkeepr.org
GNU General Public License v3.0
1.38k stars 400 forks source link

Can´t install partkeepr without php-ldap #590

Closed michielbrink closed 4 years ago

michielbrink commented 8 years ago

Hi, On this moment, it isn´t possible to install partkeepr without php-ldap. Is it possible to install it by commenting some lines so I can install it on my webhosting?

thanks,

Drachenkaetzchen commented 8 years ago

You need to remove the bundle in the AppKernel, the auth provider in security.yml and probably a few other places. You can simply use a text search to identify most places.

LDAP is a requirement by default as it's a very high effort to release two different PK versions.

michielbrink commented 8 years ago

Thanks, It works until the next error. But that´s issue 526 so I have to wait for the 1.0 release.

consumr commented 8 years ago

I second this request: My webhost does not allow LDAP installation on its shared hosting plans, being able to select the authentication provider in setup would be super-duper.

szechyjs commented 7 years ago

any progress on making ldap optional?

baradhili commented 4 years ago

1.4.0 no need for phpldap now

consumr commented 3 years ago

The check for LDAP is still in 1.4.0 at the Prerequisites for a new install... I'm trying to get around the check using the instructions here: https://wiki.partkeepr.org/wiki/Developers/Removing_LDAP , but those instructions are incomplete: You'll need to also remove the lines about LDAP in /app/PartKeeprRequirements.php

Specifically comment out lines 22 - 25 that include 'ldap_connect'

However, then I'm finding that at the Setup 2/2 stage, third step (Warming up the cache), I get a long error which seems to reference every place that LDAP is called throughout the code base. I commented out lines 85 - 102 from config.yml and that has left me with only the following error:

Screen Shot 2021-05-12 at 12 06 36 AM

I'll chase his one down tomorrow, and update this comment unless someone else weighs in before I get to it.

christianlupus commented 3 years ago

@consumr this is most probably due to an incompatible PHP version. Please check you are running with PHP 7.1