Bug 246237

Summary: ldap-client: add standard Write() function
Product: [openSUSE] openSUSE 10.3 Reporter: Michael Calmer <mc>
Component: YaST2Assignee: Jiří Suchomel <jsuchome>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None    
Version: Alpha 1   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Michael Calmer 2007-02-16 15:00:38 UTC
Ldap.ycp has a Write function which requires  block<boolean> as parameter.
This is not supported to access from perl. 

Please add an additional function like:

global define boolean Write() ``{
   block<boolean> abort_block = ``{ return false; };

   symbol ret = Ldap::Write(abort_block);

   if(ret == `abort)
   {
       return false;
   }
   return true;
}
Comment 1 Jiří Suchomel 2007-02-19 13:23:54 UTC
I can do it, but from which part of code do you want to call this? If it is from UI, you actually should give the function the abort block as parameter (and UI parts should not be written in Perl, of course).
Comment 2 Michael Calmer 2007-02-19 13:28:45 UTC
It is not the UI part. It is the module from kerberos-server.
Comment 3 Jiří Suchomel 2007-02-19 14:13:44 UTC
See Ldap::WriteNow in yast2-ldap-client-2.15.4.