~ubuntu-branches/ubuntu/karmic/likewise-open/karmic

« back to all changes in this revision

Viewing changes to domainjoin/libdomainjoin/src/djconfig_mac.c

  • Committer: Bazaar Package Importer
  • Author(s): Rick Clark
  • Date: 2008-08-27 08:56:20 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20080827085620-5q0f58b9qtog9myq
Tags: 4.1.0.2956-0ubuntu1
* missing-likewise-logo.diff: removed
* fixed copyright notice
* updated Standards-Version to 3.8.0
* removed path from command in prerm
* removed stop in S runlevel

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
 
35
35
#define LWIDSPLUGIN_SYMLINK_PATH "/System/Library/Frameworks/DirectoryService.framework/Versions/Current/Resources/Plugins/LWIDSPlugin.dsplug"
36
36
#define LWIDSPLUGIN_INSTALL_PATH "/opt/centeris/lib/LWIDSPlugin.dsplug"
37
 
#define LWIDSPLUGIN_NAME         "/Likewise Identity/Active Directory"
 
37
#define LWIDSPLUGIN_NAME         "/Likewise - Active Directory"
38
38
#define PID_FILE_CONTENTS_SIZE   ((9 * 2) + 2)
39
39
#define CONFIGD_PID_FILE         "/var/run/configd.pid"
40
40
 
 
41
#if 0
41
42
static
42
43
CENTERROR
43
44
DJGetConfigDPID(
89
90
 
90
91
    return ceError;
91
92
}
92
 
 
93
 
static
94
 
CENTERROR
95
 
DJNotifyConfigDaemon()
96
 
{
97
 
    CENTERROR ceError = CENTERROR_SUCCESS;
98
 
    pid_t pid = 0;
99
 
 
100
 
    ceError = DJGetConfigDPID(&pid);
101
 
    BAIL_ON_CENTERIS_ERROR(ceError);
102
 
 
103
 
    if (pid > 0)
104
 
    {
105
 
       if (kill(pid, SIGHUP) < 0)
106
 
       {
107
 
          ceError = CTMapSystemError(errno);
108
 
          BAIL_ON_CENTERIS_ERROR(ceError);
109
 
       }
110
 
    }
111
 
 
112
 
error:
113
 
 
114
 
    return ceError;
115
 
}
 
93
#endif /* 0 */
116
94
 
117
95
static
118
96
CENTERROR
528
506
    if(CTStrStartsWith(valueStart, "SearchPolicy:"))
529
507
        valueStart += strlen("SearchPolicy:");
530
508
    CTStripWhitespace(valueStart);
 
509
    if(CTStrStartsWith(valueStart, "dsAttrTypeStandard:"))
 
510
      valueStart += strlen("dsAttrTypeStandard:");
 
511
    CTStripWhitespace(valueStart);
531
512
    if(options->joiningDomain)
532
513
    {
533
514
        if(strcmp(valueStart, "CSPSearchPath"))