Something went wrong while setting issue due date.
Add option ldif-wrap=no in class_ldap.inc
Closed
Add option ldif-wrap=no in class_ldap.inc
Descriptive title for this enhancement
Add option ldif-wrap=no in class_ldap.inc
Actual behavior
Actually ldapsearch is performed without the option
Expected behavior
It would be nice to add the option or having a way to activate the option
Step by step description of new behaviour
- Edit class_ldap.inc
- Add ldif-wrap=no in the cmd
# before
$cmd = 'ldapsearch'.($this->tls ? ' -ZZ' : '')." -x -LLLL -D {$admin} {$filter} {$limit} {$scope} -H {$host} -b {$dn} -w {$pwd} ";
# after
$cmd = 'ldapsearch'.($this->tls ? ' -ZZ' : '')." -o ldif-wrap=no -x -LLLL -D {$admin} {$filter} {$limit} {$scope} -H {$host} -b {$dn} -w {$pwd} ";
Benefits
The ldif will no more contain wrap it can ease replace operation because we not need to think that the line can be split
Possible Drawbacks
None