- fprintf(stderr, "my_authenticate: user=%s group=%s\n",
- user ? user : "none", group ? group : "none");
+ // see if we have an "args" attribute
+ const char *args = 0;
+#if YAZ_HAVE_XSLT
+ xmlNodePtr ptr = (xmlNodePtr) element_ptr;
+ struct _xmlAttr *attr;
+
+ for (attr = ptr->properties; attr; attr = attr->next)
+ {
+ if (!strcmp((const char *) attr->name, "args") &&
+ attr->children && attr->children->type == XML_TEXT_NODE)
+ args = (const char *) attr->children->content;
+ }
+#endif
+ // args holds args (or NULL if none is provided)
+
+ sleep(2);
+ fprintf(stderr, "my_authenticate: target=%s user=%s group=%s args=%s IP=%s"
+ "\n",
+ target_name ? target_name : "none",
+ user ? user : "none", group ? group : "none",
+ args ? args : "none",
+ peer_IP);