Download the PHP package fortyseeds/ci4-shield-ldap without Composer

On this page you can find all versions of the php package fortyseeds/ci4-shield-ldap. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package ci4-shield-ldap

Enhanced LDAP Authentication for CodeIgniter 4 Shield

Enhanced version of the LDAP Authentication library for CodeIgniter 4 Shield that supports both Active Directory and OpenLDAP/FreeIPA/389 Directory servers.

Features

Installation

Configuration

1. Basic Setup

Copy the configuration file to your app:

2. Configure for Active Directory

3. Configure for OpenLDAP/FreeIPA

4. Update Shield Configuration

5. Database Migration

The package includes database migrations for additional LDAP fields. Run:

Usage

Authentication Flow

  1. Active Directory: Users login with domain\username or just username
  2. OpenLDAP/FreeIPA: Users login with their uid (e.g., john.doe)

The system automatically:

Testing LDAP Connection

Managing LDAP Users

Authentication Types Comparison

Feature Active Directory OpenLDAP/FreeIPA
Login Format domain\username uid or cn
DN Format Automatic via domain uid=user,cn=users,cn=accounts,dc=domain,dc=com
Service Account domain\service or [email protected] cn=admin,dc=domain,dc=com
Search Base OU=Users,DC=domain,DC=com cn=users,cn=accounts,dc=domain,dc=com
Primary Attributes samaccountname, objectSID uid, ipaUniqueID

Troubleshooting

Common Issues

  1. "Cannot assign null to property": Ensure LDAP attributes exist in your directory
  2. "UserIdentity not found": The enhanced version automatically creates email identities
  3. Connection timeout: Check firewall, ports (389/636), and network connectivity
  4. Authentication fails: Verify service account credentials and permissions

Debug Mode

Enable debug logging in your environment:

Check logs in writable/logs/ for detailed LDAP authentication information.

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

License

MIT License - see LICENSE file for details.

Credits

Changelog

v2.0.0 (Enhanced Version)

v1.x (Original)


All versions of ci4-shield-ldap with dependencies

PHP Build Version
Package Version
Requires codeigniter4/shield Version ^1.0
ext-ldap Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package fortyseeds/ci4-shield-ldap contains the following files

Loading the files please wait ...