diff options
| author | David M. Syzdek <syzdek@bindlebinaries.com> | 2019-10-13 22:29:13 -0800 |
|---|---|---|
| committer | David M. Syzdek <syzdek@bindlebinaries.com> | 2019-10-13 22:29:13 -0800 |
| commit | 853f578ed871e137c86408aec16313ea19ead41d (patch) | |
| tree | 2afc5fb5f9630bf2e2b97478afe7b8859569b471 /src/ldaptree.c | |
| parent | c81f807fe5d9f5de55c1d9da740e7f855c3f69fc (diff) | |
| download | ldap-utils-853f578ed871e137c86408aec16313ea19ead41d.tar.gz ldap-utils-853f578ed871e137c86408aec16313ea19ead41d.tar.bz2 ldap-utils-853f578ed871e137c86408aec16313ea19ead41d.tar.xz ldap-utils-853f578ed871e137c86408aec16313ea19ead41d.zip | |
ldaptree: fixing filter handling
Diffstat (limited to 'src/ldaptree.c')
| -rw-r--r-- | src/ldaptree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ldaptree.c b/src/ldaptree.c index d7e3358..767f078 100644 --- a/src/ldaptree.c +++ b/src/ldaptree.c | |||
| @@ -343,7 +343,7 @@ int my_config(int argc, char * argv[], MyConfig ** cnfp) | |||
| 343 | 343 | ||
| 344 | // saves filter | 344 | // saves filter |
| 345 | cnf->lud->filter = "(objectclass=*)"; | 345 | cnf->lud->filter = "(objectclass=*)"; |
| 346 | if (argc == (optind+1)) | 346 | if (argc > (optind)) |
| 347 | cnf->lud->filter = argv[optind]; | 347 | cnf->lud->filter = argv[optind]; |
| 348 | 348 | ||
| 349 | // configures LDAP attributes to return in results | 349 | // configures LDAP attributes to return in results |
