Minor Solaris fixes

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@525 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
aet 2002-04-16 10:33:28 +00:00
parent 7c9e5d667e
commit 789d88fb12
1 changed files with 11 additions and 6 deletions

View File

@ -189,19 +189,24 @@ void scldap_show_parameters(scldap_context * ctx)
if (!ctx)
return;
for (i = 0; i < ctx->entries; i++) {
if (ctx->entry[i].entry) {
if (ctx->entry[i].entry)
printf("[%i]->entry=%s\n", i, ctx->entry[i].entry);
if (ctx->entry[i].ldaphost)
printf("[%i]->ldaphost=%s\n", i, ctx->entry[i].ldaphost);
printf("[%i]->ldapport=%i\n", i, ctx->entry[i].ldapport);
printf("[%i]->scope=%i\n", i, ctx->entry[i].scope);
printf("[%i]->ldapport=%i\n", i, ctx->entry[i].ldapport);
printf("[%i]->scope=%i\n", i, ctx->entry[i].scope);
if (ctx->entry[i].binddn)
printf("[%i]->binddn=%s\n", i, ctx->entry[i].binddn);
if (ctx->entry[i].passwd)
printf("[%i]->passwd=%s\n", i, ctx->entry[i].passwd);
if (ctx->entry[i].base)
printf("[%i]->base=%s\n", i, ctx->entry[i].base);
for (j = 0; j < ctx->entry[i].numattrs; j++) {
for (j = 0; j < ctx->entry[i].numattrs; j++) {
if (ctx->entry[i].attributes[j])
printf("[%i]->attribute[%i]=%s\n", i, j, ctx->entry[i].attributes[j]);
}
printf("[%i]->filter=%s\n\n", i, ctx->entry[i].filter);
}
if (ctx->entry[i].filter)
printf("[%i]->filter=%s\n\n", i, ctx->entry[i].filter);
}
}