RE: Email address verification

Rob Berendt <[email protected]> Wed, 3 Feb 2021 13:29:57 +0000
Newsgroups gmane.comp.systems.as400.domino
Message-ID <SN6PR11MB30545A70A944F4BAA54ADF8EA4B49@SN6PR11MB3054.namprd11.prod.outlook.com>
Do you know how to do a ldapsearch?
Do you know how to configure Domino to serve up ldap?

For example:
QSH
ldapsearch -h ldap01.corp.dekko.com -s one "[email protected]"
returns:

> ldapsearch -h ldap01.corp.dekko.com -s one "[email protected]" 
  CN=Rob Berendt,O=DEKKO                                          
  cn=Rob Berendt                                                  
  cn=rberendt                                                     
 ...
  [email protected]                                              
...

You could try this:
QSH CMD('ldapsearch -h ldap01.corp.dekko.com -s one "[email protected]" > /home/ROB/ldapout.txt')
DSPF '/home/ROB/ldapout.txt'   
Don't try the following in STRSQL, try it in iACS Run SQL Scripts instead.
SELECT * FROM TABLE(QSYS2.IFS_READ(                       
                     PATH_NAME => '/home/ROB/ldapout.txt'
                     ))
               where upper (line) like ('CN=%')
                 or line like('mail=%')
;

Rob Berendt
-- 
IBM Certified System Administrator - IBM i 6.1
Group Dekko
Dept 1600
Mail to:  7310 Innovation Blvd, Suite 104
          Ft. Wayne, IN 46818
Ship to:  7310 Innovation Blvd, Dock 9C
          Ft. Wayne, IN 46818
http://www.dekko.com


-----Original Message-----
From: Domino400 <domino400-bounces-+hD5IHI5Xscn3HwCXmMcX9BPR1lH4CV8@public.gmane.org> On Behalf Of Doug via Domino400
Sent: Tuesday, February 2, 2021 9:16 AM
To: [email protected]
Cc: DEnglander-Nx8w8t/[email protected]
Subject: Email address verification

CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.


Does anyone know of a way to validate an email address for a Domino
server? I am looking for an API or other interface that an RPG program can
interact with to have the API say, Yes, that email is in the directory, or
No, that email does not exist.

Does that capability exist anywhere? We are on V7R3, pretty current on
PTFs and pretty current on our Domino installation.

Thank you,

Doug


"CONFIDENTIALITY NOTICE:  This e-mail transmission (and/or the attachments accompanying it) contain confidential information belonging to the sender.  The information is intended only for the use of the intended recipient.  If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of the information is strictly prohibited.  Any unauthorized interception of this transmission is illegal under the law.  If you have received this transmission in error, please promptly notify the sender by reply e-mail, and then destroy all copies of the transmission."
--
This is the Lotus Domino on the IBM i (AS/400 and iSeries) (Domino400) mailing list
To post a message email: [email protected]
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/domino400
or email: Domino400-request-+hD5IHI5Xscn3HwCXmMcX9BPR1lH4CV8@public.gmane.org
Before posting, please take a moment to review the archives
at https://archive.midrange.com/domino400.
-- 
This is the Lotus Domino on the IBM i (AS/400 and iSeries) (Domino400) mailing list
To post a message email: [email protected]
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/domino400
or email: Domino400-request-+hD5IHI5Xscn3HwCXmMcX9BPR1lH4CV8@public.gmane.org
Before posting, please take a moment to review the archives
at https://archive.midrange.com/domino400.