diff options
author | Simo Sorce <idra@samba.org> | 2005-08-21 14:26:03 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:34:16 -0500 |
commit | 5c16371daa9d496fe109ea30bd6cfa3fd863a219 (patch) | |
tree | 35e8a1a60439039023384fd5f769e5f4ce7c0504 /source4/lib/ldb/tools/cmdline.c | |
parent | f975eb06f0ddd13fe20dd336bb134e6d32be9067 (diff) | |
download | samba-5c16371daa9d496fe109ea30bd6cfa3fd863a219.tar.gz samba-5c16371daa9d496fe109ea30bd6cfa3fd863a219.tar.bz2 samba-5c16371daa9d496fe109ea30bd6cfa3fd863a219.zip |
r9447: Add a new tool to convert openLdap schema files into an ldif
My first test with nis.schema seem to confirm it works properly
Use a command line like:
oLschema2ldif -I tests/schema/nis.schema -O nis_schema.ldif -b "dc=sambadom,dc=samba,dc=org"
to see how it works.
SSS
(This used to be commit fc373fd4631420c9d8d4087a2c698b08e18372d7)
Diffstat (limited to 'source4/lib/ldb/tools/cmdline.c')
-rw-r--r-- | source4/lib/ldb/tools/cmdline.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source4/lib/ldb/tools/cmdline.c b/source4/lib/ldb/tools/cmdline.c index 7657301f35..cde357a088 100644 --- a/source4/lib/ldb/tools/cmdline.c +++ b/source4/lib/ldb/tools/cmdline.c @@ -151,13 +151,13 @@ struct ldb_cmdline *ldb_cmdline_process(struct ldb_context *ldb, int argc, const *ret = options; /* all utils need some option */ - if (ldb) { - if (ret->url == NULL) { - fprintf(stderr, "You must supply a url with -H or with $LDB_URL\n"); - if (usage) usage(); - goto failed; - } + if (ret->url == NULL) { + fprintf(stderr, "You must supply a url with -H or with $LDB_URL\n"); + if (usage) usage(); + goto failed; + } + if (strcmp(ret->url, "NONE") != 0) { if (ldb_connect(ldb, ret->url, 0, ret->options) != 0) { fprintf(stderr, "Failed to connect to %s - %s\n", ret->url, ldb_errstring(ldb)); |