var dc = sh.directories[0].connect(); is not able to connect it is throwing error like
directory.connect:24:batch undefined:exec
connection not established. check directory configuration settings.
your needed solve issue
my code
var sh = security.gethandler("adobe.ppkms");
// connect directory containing user certificates:
var dir = sh.directories[0];
var dc = dir.connect();
// search directory certificates:
dc.setoutputfields({ofields:["certificates"]});
var importantusers = dc.search({oparams:{lastname:"smith"}});
var otherusers = dc.search({oparams:{lastname:"jones"}});
// allow important users full, unrestricted access:
var importantgroup = {
userentities: importantusers,
permissions: {allowall: true}
};
More discussions in Security & Digital Signatures
adobe
Comments
Post a Comment