| CARVIEW |
Select Language
HTTP/1.1 200 OK
Connection: keep-alive
Server: nginx/1.24.0 (Ubuntu)
Content-Type: text/html; charset=utf-8
Cache-Control: public, max-age=300
Content-Encoding: gzip
Via: 1.1 varnish, 1.1 varnish
Accept-Ranges: bytes
Age: 0
Date: Sat, 17 Jan 2026 22:38:46 GMT
X-Served-By: cache-dfw-kdfw8210069-DFW, cache-bom-vanm7210042-BOM
X-Cache: MISS, MISS
X-Cache-Hits: 0, 0
X-Timer: S1768689525.472660,VS0,VE768
Vary: Accept, Accept-Encoding
transfer-encoding: chunked
ldapply: LDIF idempotent apply tool
ldapply: LDIF idempotent apply tool
Downloads
- ldapply-0.2.0.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
| Versions [RSS] | 0.1.0, 0.2.0 |
|---|---|
| Change log | ChangeLog.md |
| Dependencies | base (>=4.8 && <50), bytestring, docopt, interpolatedstring-perl6, LDAP (>0.6.10), ldif, unordered-containers [details] |
| License | MIT |
| Copyright | 2017, Zalora South East Asia Pte. Ltd |
| Author | Igor Pashev <pashev.igor@gmail.com> |
| Maintainer | Igor Pashev <pashev.igor@gmail.com> |
| Uploaded | by ip1981 at 2017-01-12T16:08:18Z |
| Category | Network, Text |
| Source repo | head: git clone https://github.com/ip1981/ldapply.git |
| Distributions | |
| Reverse Dependencies | 1 direct, 0 indirect [details] |
| Executables | ldapply |
| Downloads | 1706 total (7 in the last 30 days) |
| Rating | (no votes yet) [estimated by Bayesian average] |
| Your Rating |
|
| Status | Docs not available [build log] All reported builds failed as of 2017-01-12 [all 3 reports] |
Readme for ldapply-0.2.0
[back to package description]ldapply
LDIF idempotent apply tool.
This tool is similar to ldapmodify with one exception: it's idempotent.
It was written to help declarative deployments with NixOS.
How it works
- If change type is not specified, it adds or replaces an entry.
- If change type is specified, it acts like normal
ldapmodify.
Requirements
ldapply is written in Haskell with GHC.
All required Haskell libraries are listed in ldapply.cabal.
Use cabal-install to fetch
and build all pre-requisites automatically.
Usage
Type ldapply --help to see usage summary:
Usage:
ldapply [options] LDIF...
Options:
-H <ldapuri> LDAP URL to connect to [default: ldapi:///]
-x Use simple bind instead of default SASL External
-D <binddn> Use <binddn> for the distinguished name or authorization identity
-w <passwd> Use <passwd> as the password for simple bind
-y <passwdfile> Read password from <passwdfile>, only the first line is read
-h, --help Show this message
If option -w is given, -y is ignored.
LDIF example
dn: dc=nodomain
objectClass: top
objectClass: dcObject
objectClass: organization
dc: nodomain
o: Example, Inc.
dn: cn=reader,dc=nodomain
objectclass: top
objectclass: organizationalRole
objectclass: simpleSecurityObject
cn: reader
description: Initial description
userPassword: qwerty123lol
# description will be removed, userPassword changed:
dn: cn=reader,dc=nodomain
objectclass: top
objectclass: simpleSecurityObject
objectclass: organizationalRole
cn: reader
userPassword: foobar12345
# userPassword will be changed:
dn: cn=reader,dc=nodomain
changetype: modify
replace: userPassword
userPassword: anothersecretstuff
dn: cn=reader,dc=nodomain
changetype: modify
replace: description
description: foo
# This will be deleted if exists:
dn: cn=reader,dc=nodomain
changetype: delete