{"_id":"4q-node-ldap","_rev":"6-b5291077a78770b8062341252932a2a2","name":"4q-node-ldap","dist-tags":{"latest":"1.2.0"},"versions":{"1.0.1":{"name":"4q-node-ldap","version":"1.0.1","description":"LDAP functions","publishConfig":{"access":"public"},"main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","author":{"name":"Rocky Assad"},"license":"MIT","scripts":{"build":"tsup","test":"jest"},"dependencies":{"activedirectory":"^0.7.2","bluebird":"^3.7.2"},"devDependencies":{"@types/jest":"^29.5.7","jest":"^29.7.0","ts-jest":"^29.1.1","ts-node":"^10.9.1","tsup":"^7.2.0","typescript":"^5.2.2"},"directories":{"test":"tests"},"keywords":["ldap"],"repository":{"type":"git","url":"git+ssh://git@github.com/CodisRedding/4q-node-ldap.git"},"bugs":{"url":"https://github.com/CodisRedding/4q-node-ldap/issues"},"homepage":"https://github.com/CodisRedding/4q-node-ldap#readme","gitHead":"7269b37ae50342272bc2eb68a05c80b9e80f19b1","_id":"4q-node-ldap@1.0.1","_nodeVersion":"20.4.0","_npmVersion":"9.7.2","dist":{"integrity":"sha512-oMuiCQvCIdQPqRcXFv5e3DjGgsXs2q5sshJgdENYTwWfHWVeZ27UCOTUMmwiUIK7T2FSuCXCn3/oUasggK8Jsg==","shasum":"0374d283c85040997701b8c06842b94d1eed7f0e","tarball":"https://registry.npmjs.org/4q-node-ldap/-/4q-node-ldap-1.0.1.tgz","fileCount":8,"unpackedSize":11711,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCAwEVo3XudFbivZ8hPtdwf0FuRXwLm3DDj/eKRSb2RvgIgfaVAm1admTea+Ff9DYHL4QK36TU88WBgXrLV+MKxlzs="}]},"_npmUser":{"name":"rockyassad","email":"rocky.assad@premisehealth.com"},"maintainers":[{"name":"rockyassad","email":"rocky.assad@premisehealth.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/4q-node-ldap_1.0.1_1698783970213_0.049875905343346405"},"_hasShrinkwrap":false},"1.0.2":{"name":"4q-node-ldap","version":"1.0.2","description":"LDAP functions","publishConfig":{"access":"public"},"main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","author":{"name":"Rocky Assad"},"license":"MIT","scripts":{"build":"tsup","test":"jest"},"dependencies":{"activedirectory":"^0.7.2","bluebird":"^3.7.2"},"devDependencies":{"@types/jest":"^29.5.7","jest":"^29.7.0","ts-jest":"^29.1.1","ts-node":"^10.9.1","tsup":"^7.2.0","typescript":"^5.2.2"},"directories":{"test":"tests"},"keywords":["ldap"],"repository":{"type":"git","url":"git+ssh://git@github.com/CodisRedding/4q-node-ldap.git"},"bugs":{"url":"https://github.com/CodisRedding/4q-node-ldap/issues"},"homepage":"https://github.com/CodisRedding/4q-node-ldap#readme","gitHead":"a01d9695094569d521a94eb432881975e7e66ba7","_id":"4q-node-ldap@1.0.2","_nodeVersion":"20.4.0","_npmVersion":"9.7.2","dist":{"integrity":"sha512-1VjVzyzACuI6C6ec0rJNbeTzu8xVLIdXSGSBimZ01QA3xwFcdAh09ptflWa2g42gUh39gXLbasBxV8C34midSQ==","shasum":"b21e9e63fd5f3a7986157df76536c00a691f51ca","tarball":"https://registry.npmjs.org/4q-node-ldap/-/4q-node-ldap-1.0.2.tgz","fileCount":8,"unpackedSize":11543,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC7uK10TCFa5wIrvhG/vbIULkz1KhwdtwE4k9pQVnOB0wIhAMvzlu70mbyG9Z0uLSwsBna2NwA0z9qizk9khn5nbegs"}]},"_npmUser":{"name":"rockyassad","email":"rocky.assad@premisehealth.com"},"maintainers":[{"name":"rockyassad","email":"rocky.assad@premisehealth.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/4q-node-ldap_1.0.2_1698784098348_0.6193875202477945"},"_hasShrinkwrap":false},"1.0.3":{"name":"4q-node-ldap","version":"1.0.3","description":"LDAP functions","publishConfig":{"access":"public"},"main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","author":{"name":"Rocky Assad"},"license":"MIT","scripts":{"build":"tsup","test":"jest"},"dependencies":{"activedirectory":"^0.7.2","bluebird":"^3.7.2"},"devDependencies":{"@types/jest":"^29.5.7","jest":"^29.7.0","ts-jest":"^29.1.1","ts-node":"^10.9.1","tsup":"^7.2.0","typescript":"^5.2.2"},"directories":{"test":"tests"},"keywords":["ldap"],"repository":{"type":"git","url":"git+ssh://git@github.com/CodisRedding/4q-node-ldap.git"},"bugs":{"url":"https://github.com/CodisRedding/4q-node-ldap/issues"},"homepage":"https://github.com/CodisRedding/4q-node-ldap#readme","gitHead":"612cdee56faa268c42af8d4d174a3dc97f9c4534","_id":"4q-node-ldap@1.0.3","_nodeVersion":"20.4.0","_npmVersion":"9.7.2","dist":{"integrity":"sha512-zYWKkPBk3v1R5sVXhhAmND6SwbB3f4uapbR3A/eF6LEfmXJi6m1TA3l2NxkoMKezx6kkVm+fnnUFRULPYuQ7Uw==","shasum":"014541e128ca63f5d8a2c0a3d3d8ad7307b156d5","tarball":"https://registry.npmjs.org/4q-node-ldap/-/4q-node-ldap-1.0.3.tgz","fileCount":8,"unpackedSize":11549,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDxk/RFDLp/wbZVdOsHp3c5hDCbbmOHNGUNEEoxs17M2QIgIBJG4vhwnkc49mOZAUFI8cjDo+TNx7uPjP2MMQypmcw="}]},"_npmUser":{"name":"rockyassad","email":"rocky.assad@premisehealth.com"},"maintainers":[{"name":"rockyassad","email":"rocky.assad@premisehealth.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/4q-node-ldap_1.0.3_1698784157366_0.13405919151666845"},"_hasShrinkwrap":false},"1.0.4":{"name":"4q-node-ldap","version":"1.0.4","description":"LDAP functions","publishConfig":{"access":"public"},"main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","author":{"name":"Rocky Assad"},"license":"MIT","scripts":{"build":"tsup","test":"jest"},"dependencies":{"activedirectory":"^0.7.2","bluebird":"^3.7.2"},"devDependencies":{"@types/jest":"^29.5.7","jest":"^29.7.0","ts-jest":"^29.1.1","ts-node":"^10.9.1","tsup":"^7.2.0","typescript":"^5.2.2"},"directories":{"test":"tests"},"keywords":["ldap"],"repository":{"type":"git","url":"git+ssh://git@github.com/CodisRedding/4q-node-ldap.git"},"bugs":{"url":"https://github.com/CodisRedding/4q-node-ldap/issues"},"homepage":"https://github.com/CodisRedding/4q-node-ldap#readme","gitHead":"b34d61d68df2ef84d9b2d3c02fe17f054e9014f3","_id":"4q-node-ldap@1.0.4","_nodeVersion":"20.4.0","_npmVersion":"9.7.2","dist":{"integrity":"sha512-JOXA0WVkcgfs/ulb2NwPI/1pwhqpCzYB77x0NcOt3bmdA3LLOKYQhZaoBJKjt4CWwKniNAV6a7qkLoZEg3/WKQ==","shasum":"c379ee937f1080e30c7e12ce5a0c40543d4175a6","tarball":"https://registry.npmjs.org/4q-node-ldap/-/4q-node-ldap-1.0.4.tgz","fileCount":8,"unpackedSize":12172,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBkQG887qlKpfHht0AORta2Bj6iASHJ3FnfekS6ZXRvaAiEAjhXSJWTQ7L7AQjLLXl+uFLeiR+Xrb/jWKkA/FW1O2/0="}]},"_npmUser":{"name":"rockyassad","email":"rocky.assad@premisehealth.com"},"maintainers":[{"name":"rockyassad","email":"rocky.assad@premisehealth.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/4q-node-ldap_1.0.4_1698850257122_0.030518014886833145"},"_hasShrinkwrap":false},"1.0.5":{"name":"4q-node-ldap","version":"1.0.5","description":"LDAP functions","publishConfig":{"access":"public"},"main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","author":{"name":"Rocky Assad"},"license":"MIT","scripts":{"build":"tsup","test":"jest"},"dependencies":{"activedirectory":"^0.7.2","bluebird":"^3.7.2"},"devDependencies":{"@types/jest":"^29.5.7","jest":"^29.7.0","ts-jest":"^29.1.1","ts-node":"^10.9.1","tsup":"^7.2.0","typescript":"^5.2.2"},"directories":{"test":"tests"},"keywords":["ldap"],"repository":{"type":"git","url":"git+ssh://git@github.com/CodisRedding/4q-node-ldap.git"},"bugs":{"url":"https://github.com/CodisRedding/4q-node-ldap/issues"},"homepage":"https://github.com/CodisRedding/4q-node-ldap#readme","gitHead":"a4e6343fb4259a69ded3d997bb14099bfed4ae4f","_id":"4q-node-ldap@1.0.5","_nodeVersion":"20.4.0","_npmVersion":"9.7.2","dist":{"integrity":"sha512-II0EvWE1QITepZbIIXaNFuuQDGVkyIZ5r1Sz5B1KxN1mpSznhP6M9FpGNNTT2PlupYw8NQ+XfRdltb+5FQzghQ==","shasum":"fdbb6eeb12129eeaee80c1455e9d965681f01d09","tarball":"https://registry.npmjs.org/4q-node-ldap/-/4q-node-ldap-1.0.5.tgz","fileCount":8,"unpackedSize":12172,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDoH0ibcXrajx1PIZtYzkKdWvUZV5Ind+/+mJvWMdISdAIhAOyZOrmuOtDc5U6xZwL4hctOBDh0kuzfcqRUd8csqVI6"}]},"_npmUser":{"name":"rockyassad","email":"rocky.assad@premisehealth.com"},"maintainers":[{"name":"rockyassad","email":"rocky.assad@premisehealth.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/4q-node-ldap_1.0.5_1698850311174_0.3041284273809677"},"_hasShrinkwrap":false},"1.1.0":{"name":"4q-node-ldap","version":"1.1.0","description":"LDAP functions","publishConfig":{"access":"public"},"main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","author":{"name":"Rocky Assad"},"license":"MIT","scripts":{"build":"tsup","test":"jest"},"dependencies":{"activedirectory":"^0.7.2","bluebird":"^3.7.2"},"devDependencies":{"@types/jest":"^29.5.7","jest":"^29.7.0","ts-jest":"^29.1.1","ts-node":"^10.9.1","tsup":"^7.2.0","typescript":"^5.2.2"},"directories":{"test":"tests"},"keywords":["ldap"],"repository":{"type":"git","url":"git+ssh://git@github.com/CodisRedding/4q-node-ldap.git"},"bugs":{"url":"https://github.com/CodisRedding/4q-node-ldap/issues"},"homepage":"https://github.com/CodisRedding/4q-node-ldap#readme","gitHead":"3f9da23272327803e39caa1bb3024880028d7cd8","_id":"4q-node-ldap@1.1.0","_nodeVersion":"20.4.0","_npmVersion":"9.7.2","dist":{"integrity":"sha512-XzSOv30h58/5EvDqTGV1yO4XAMnyYOmz2whwKuYdk3RhPOn8urwr6izwAlFUeNkw4Bh3zyTuwg92EGQFCCMKrg==","shasum":"56923b9ea73e6acfd6b52b43d7da8b252cf17120","tarball":"https://registry.npmjs.org/4q-node-ldap/-/4q-node-ldap-1.1.0.tgz","fileCount":8,"unpackedSize":12580,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDDEHMRFeh/X5DxYTvm/e2EQXex+4qTjK61APBacCo2qgIhAPZYg8jWWEZ4WSl94c4Er8grMTJS5s5KqGMI5mj5tVTL"}]},"_npmUser":{"name":"rockyassad","email":"rocky.assad@premisehealth.com"},"maintainers":[{"name":"rockyassad","email":"rocky.assad@premisehealth.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/4q-node-ldap_1.1.0_1698855551460_0.46053653491178137"},"_hasShrinkwrap":false},"1.2.0":{"name":"4q-node-ldap","version":"1.2.0","description":"LDAP functions","publishConfig":{"access":"public"},"main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","author":{"name":"Rocky Assad"},"license":"MIT","scripts":{"build":"tsup","test":"jest"},"dependencies":{"activedirectory":"^0.7.2","bluebird":"^3.7.2"},"devDependencies":{"@types/jest":"^29.5.7","jest":"^29.7.0","ts-jest":"^29.1.1","ts-node":"^10.9.1","tsup":"^7.2.0","typescript":"^5.2.2"},"directories":{"test":"tests"},"keywords":["ldap"],"repository":{"type":"git","url":"git+ssh://git@github.com/CodisRedding/4q-node-ldap.git"},"bugs":{"url":"https://github.com/CodisRedding/4q-node-ldap/issues"},"homepage":"https://github.com/CodisRedding/4q-node-ldap#readme","gitHead":"62078f4ff7a3b44b117c5abeea1766b70aeb93c9","_id":"4q-node-ldap@1.2.0","_nodeVersion":"20.4.0","_npmVersion":"9.7.2","dist":{"integrity":"sha512-QA8vWel2NBefmUD6oPekLwuADBy2hISmeAjp+EfgIJMhEVOtOTI3wT1vwVYUwR8EQOKz0ucL9gtE1D5p5sTMPA==","shasum":"9ed7c71e218838786d0140d1d7211e168262104f","tarball":"https://registry.npmjs.org/4q-node-ldap/-/4q-node-ldap-1.2.0.tgz","fileCount":8,"unpackedSize":12580,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCXJ3df0OEKzQcrr7F31frb3kJnaFlV2GtNhG+RBhmXxwIhALyO0SOEIPoeIlVa+4JuQUS4HJpKOfkEOV/ZxUWA37lS"}]},"_npmUser":{"name":"rockyassad","email":"rocky.assad@premisehealth.com"},"maintainers":[{"name":"rockyassad","email":"rocky.assad@premisehealth.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/4q-node-ldap_1.2.0_1698856430771_0.7062933596053458"},"_hasShrinkwrap":false}},"time":{"created":"2023-10-31T20:26:10.103Z","1.0.1":"2023-10-31T20:26:10.407Z","modified":"2023-11-01T16:33:51.136Z","1.0.2":"2023-10-31T20:28:18.726Z","1.0.3":"2023-10-31T20:29:17.605Z","1.0.4":"2023-11-01T14:50:57.364Z","1.0.5":"2023-11-01T14:51:51.412Z","1.1.0":"2023-11-01T16:19:11.752Z","1.2.0":"2023-11-01T16:33:50.967Z"},"maintainers":[{"name":"rockyassad","email":"rocky.assad@premisehealth.com"}],"description":"LDAP functions","homepage":"https://github.com/CodisRedding/4q-node-ldap#readme","keywords":["ldap"],"repository":{"type":"git","url":"git+ssh://git@github.com/CodisRedding/4q-node-ldap.git"},"author":{"name":"Rocky Assad"},"bugs":{"url":"https://github.com/CodisRedding/4q-node-ldap/issues"},"license":"MIT","readme":"# Async/Await ldap wrapper \n\n## Goal\n\nExpose our most used ldap functions as async/await for use across projects.\n\n## Features\n\n- Authentication\n- Get user groups\n- Expose raw ldap client\n\n## Usage\n\n### Installation\n\n```sh\nnpm install 4q-node-ldap --save\n```\n\n```javascript\nconst ldap = require('4q-node-ldap');\n\nconst ldapConn = await ldap.Connect(\n    'ldaps://ldaps.example.com',\n    'DC=example,DC=com',\n    'service-user@example.com',\n    'password',\n    { /* tls options */ },\n    { /* ldap options */ }\n);\n\nawait ldapConn.authenticate('other-user@example.com', 'password');\nawait ldapConn.groups('other-user@example.com');\n```\n\n\n\n## build\n`npm run build`\n\nWhenever this package is updated locally the changes will be available in the projects that are linked\n\n* Run the following command at the root of this package\n`npm link`\n\n* In the project where you want to use this package link the npm package locally with\n`npm link 4q-node-ldap`\n\n## publish\nAny changes made must first be built and then version increased\nbefore publishing\n1. `npm version major|minor|patch`\n\n2. `npm login` \n\n3. `npm publish`","readmeFilename":"README.md"}