Skip to main content
Participant
October 6, 2016
Question

var dc = sh.directories[0].connect(); is not able to connect it is throwing error like

  • October 6, 2016
  • 1 reply
  • 434 views

Directory.connect:24:Batch undefined:Exec

Connection could not be established. Check your directory configuration settings.

Your help needed to solve this issue

my code

var sh = security.getHandler("Adobe.PPKMS");

// Connect to the directory containing the user certificates:

var dir = sh.directories[0];

var dc = dir.connect();

// Search the directory for 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}

};

This topic has been closed for replies.

1 reply

Adorobat
Participating Frequently
October 9, 2016

Hi ashwiniv81309791

Could you please let me know what you are trying to accomplish?

Participant
October 11, 2016

I am creating a pdf from excel and I want to make sure that no one can copy edit and if they want to edit the pdf, it will ask the password.I have adobe acrobat pro and I have seen there are some methods which are available in the adobe pdf but the below method throwing error when i am running in the java script debugger in the adobe acrobat pro

var sh = security.getHandler("Adobe.PPKMS");

// Connect to the directory containing the user certificates:

var dir = sh.directories[0];

var dc = dir.connect();

Directory.connect:24:Batch undefined:Exec

Connection could not be established. Check your directory configuration settings.