/* acsapaddr.c - application entity information -- lookup */
static char *rcsid
= "$Header: /f/osi/acsap/RCS/acsapaddr.c,v 7.5 91/02/22 09:14:04 mrose Interim $";
* $Header: /f/osi/acsap/RCS/acsapaddr.c,v 7.5 91/02/22 09:14:04 mrose Interim $
* Revision 7.5 91/02/22 09:14:04 mrose
* Revision 7.4 90/12/11 10:51:54 mrose
* Revision 7.3 90/10/29 18:37:47 mrose
* Revision 7.2 90/07/27 08:41:46 mrose
* Revision 7.1 90/07/09 14:30:27 mrose
* Revision 7.0 89/11/23 21:21:45 mrose
* Acquisition, use, and distribution of this module and related
* materials are subject to the restrictions of a license agreement.
* Consult the Preface in the User's Manual for the full terms of
struct PSAPaddr
*aei2addr_stub ();
struct PSAPaddr
*aei2addr_dse ();
static char fallback1
[BUFSIZ
],
static struct PSAPaddr
*(*lookup
) () = NULL
;
/* backwards compatibility... */
"isode passwd lookup demo",
"pp qmgr interface","pp qmgr",
AEI
_str2aei (designator
, qualifier
, context
, interactive
, userdn
,
register struct mapping
*m
;
if (qualifier
== NULLCP
) {
for (m
= sac2cn
; m
-> m_key
; m
++)
if (strcmp (m
-> m_key
, context
) == 0) {
qualifier
= m
-> m_value
;
qualifier
= context
? context
: "default";
for (m
= sac2cn
; m
-> m_key
; m
++)
if (strcmp (m
-> m_value
, qualifier
) == 0) {
LLOG (addr_log
, LLOG_TRACE
,
("str2aei \"%s\" \"%s\" \"%s\" %d",
designator
, qualifier
, context
, interactive
));
aei
= NULL
, lookup
= NULL
;
if (aei
= str2aei_dse (designator
, context
, interactive
, userdn
,
(void) strcpy (fallback1
, designator
);
(void) strcpy (fallback2
, qualifier
);
SLOG (addr_log
, LLOG_EXCEPTIONS
, NULLCP
,
("DSE lookup of service \"%s\" \"%s\" \"%s\" failed",
designator
, context
, qualifier
));
if (aei
= str2aei_stub (designator
, qualifier
))
SLOG (addr_log
, LLOG_EXCEPTIONS
, NULLCP
,
("stub DSE lookup of service \"%s\" \"%s\" \"%s\" failed",
designator
, context
, qualifier
));
SLOG (addr_log
, LLOG_TRACE
, NULLCP
,
("str2aei returns %s", aei
? sprintaei (aei
) : "NULLAEI"));
struct PSAPaddr
*aei2addr (aei
)
SLOG (addr_log
, LLOG_TRACE
, NULLCP
, ("aei2addr %s", sprintaei (aei
)));
&& lookup
== aei2addr_dse
&& (aei
= str2aei_stub (fallback1
, fallback2
))
&& (pa
= aei2addr_stub (aei
))) {
SLOG (addr_log
, LLOG_NOTICE
, NULLCP
,
("fallback use of stub DSE succeeded"));
SLOG (addr_log
, LLOG_TRACE
, NULLCP
,
("aei2addr returns %s", paddr2str (pa
, NULLNA
)));