Socket
Socket
Sign inDemoInstall

react-native-ldapts

Package Overview
Dependencies
8
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-native-ldapts

LDAP client for React Native


Version published
Weekly downloads
6
increased by200%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

LDAPts

NPM version node version Known Vulnerabilities

LDAP client for React Native based on LDAPts.

Note

This is forked from LDAPts with some dependency changes to allow usage in React Native

It requires certain react native compatible libraries to be installed in order for this to work.

Required dependencies

  1. react-native-tcp
  2. node-libs-react-native
  3. react-native-get-random-values
npm install --save react-native-tcp node-libs-react-native react-native-get-random-values

Add the following into metro.config.js

// metro.config.js
module.exports = {
  resolver: {
    extraNodeModules: require('node-libs-react-native'),
  },
};

Add the following to the top of the entry index.js for react native

import 'node-libs-react-native/globals';
import 'react-native-get-random-values';
// ...
import App from './App.ts';

Known Issues

  • There seems to be a duplicated dependency issue with the react-native-tcp library that was used on iOS where multiple TcpSockets is getting linked.

    • In order to get it to work,
      1. Go to xcode
      2. into project navigator, click on Pods folder
      3. then select TcpSockets in targets
      4. Go to Build Phases > Compile sources
      5. remove reference to CocoaAsyncSocket
  • TLS doesn't work now as I couldn't find any react-native compatible tls library to swap with.

Usage

See LDAPts README on how to use the library

Keywords

FAQs

Last updated on 11 Apr 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc