Last active
November 17, 2018 22:37
-
-
Save darrenjrobinson/f5870e7f2fbf5914ce28a51c80d0d3e5 to your computer and use it in GitHub Desktop.
IBM Domino Notes Password Trigger Agent Script. Supporting blog post is located here https://blog.darrenjrobinson.com/synchronizing-passwords-from-active-directory-to-the-ibmlotus-domino-identity-vault-using-microsoft-identity-manager-part-2/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import lotus.domino.*; | |
public class JavaAgent extends AgentBase { | |
public void NotesMain() { | |
try { | |
Session session = getSession(); | |
AgentContext agentContext = session.getAgentContext(); | |
DocumentCollection dc = agentContext.getUnprocessedDocuments(); | |
Document doc = dc.getFirstDocument(); | |
Database db = agentContext.getCurrentDatabase(); | |
Agent agent = db.getAgent("mimpasswordsync"); | |
while (doc != null) { | |
agent.runOnServer(doc.getNoteID()); | |
System.out.println(doc.getNoteID()); | |
doc = dc.getNextDocument(); } | |
} catch(Exception e) { | |
e.printStackTrace(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment