Hi All,
Here is another error from trace.

I am trying to use LDAP from CCNET Running on server 2003 but in my
log I see following error. Can Somebody hep.





2012-03-04 00:35:19,878 [ILS:ERROR] Publisher threw exception:
System.Runtime.InteropServices.COMException (0x8007203A): The server
is not operational.



   at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)

   at System.DirectoryServices.DirectoryEntry.Bind()

   at System.DirectoryServices.DirectoryEntry.get_AdsObject()

   at System.DirectoryServices.DirectorySearcher.FindAll(Boolean
findMoreThanOne)

   at System.DirectoryServices.DirectorySearcher.FindOne()

   at 
ThoughtWorks.CruiseControl.Core.Publishers.EmailLDAPConverter.Convert(String
username)

   at 
ThoughtWorks.CruiseControl.Core.Publishers.EmailMessage.GetEmailUser(String
username)

   at 
ThoughtWorks.CruiseControl.Core.Publishers.EmailMessage.AddModifiers(IDictionary
recipients)

   at ThoughtWorks.CruiseControl.Core.Publishers.EmailMessage.get_Recipients()

   at 
ThoughtWorks.CruiseControl.Core.Publishers.EmailPublisher.Execute(IIntegrationResult
result)

   at ThoughtWorks.CruiseControl.Core.Tasks.TaskBase.Run(IIntegrationResult
result)

   at ThoughtWorks.CruiseControl.Core.Project.RunTask(ITask task,
IIntegrationResult result, Boolean isPublisher)





My Config file is like below.



<publishers>



                        <email mailport="25" includeDetails="TRUE"
useSSL="FALSE">

                                  <from>[email protected]</from>

                                  <mailhost>smtp-amg-am.hedani.net</mailhost>

                                  <users>

                                                      <cb:define
userEmail="${CCNetModifyingUsers}" />

                                                      <user
name="${CCNetModifyingUsers}" group="buildmaster" address="" />

                                                  </users>



                                  <groups>

                                    <group name="developers">

                                      <notifications>


<notificationType>Failed</notificationType>


<notificationType>Fixed</notificationType>

                                      </notifications>

                                    </group>

                                    <group name="buildmaster">

                                      <notifications>


<notificationType>Always</notificationType>

                                      </notifications>

                                    </group>

                                    <group name="failure">

                                      <notifications>


<notificationType>Failed</notificationType>

                                      </notifications>

                                    </group>



                                    <group name="Modify">

                                               <notifications>


<notificationType>Always</notificationType>

                                               </notifications>

                                    </group>



                                  </groups>



                                  <converters>

                                                        <ldapConverter
domainName="GBLADHEADNI" />

                                          </converters>



                                          <modifierNotificationTypes>

                                    <NotificationType>Failed</NotificationType>

                                    <NotificationType>Fixed</NotificationType>

                                  </modifierNotificationTypes>

                                  <subjectSettings>

                                    <subject buildResult="StillBroken"
value="Build is still broken for ${CCNetProject}" />

                                    <subject buildResult="Broken"
value="${CCNetProject} broke at ${CCNetBuildDate} ${CCNetBuildTime } ,
last checkin(s) by ${CCNetFailureUsers}" />

                                            <subject
buildResult="Exception" value="Serious problem for ${CCNetProject}, it
is now in Exception! Check status of network / sourcecontrol" />



                                  </subjectSettings>

                                  <xslFiles>

                                    <file>xsl\header.xsl</file>

                                    <file>xsl\compile-msbuild.xsl</file>

                                    <file>xsl\modifications.xsl</file>

                                  </xslFiles>

                                  </email>

                                  <xmllogger />

                                  <statistics />

                     <modificationHistory onlyLogWhenChangesFound="true" />

                    </publishers>

On Sat, Mar 3, 2012 at 10:37 AM, Sunil Singh <[email protected]> wrote:
> here is the config entry
>
> <email mailport="25" includeDetails="TRUE" useSSL="FALSE">
>
>                                  <from>[email protected]</from>
>
>                                  <mailhost>smtp-amg-am.hedani.net</mailhost>
>
>                                  <users>
>
>
>         <user name="ssingh46" group="buildmaster" address="" />
>
>                                   </users>
>
>                                  <groups>
>
>                                    <group name="developers">
>
>                                      <notifications>
>
>
> <notificationType>Failed</notificationType>
>
>
> <notificationType>Fixed</notificationType>
>
>                                      </notifications>
>
>                                    </group>
>
>                                    <group name="buildmaster">
>
>                                      <notifications>
>
>
> <notificationType>Always</notificationType>
>
>                                      </notifications>
>
>                                    </group>
>
>                                    <group name="failure">
>
>                                      <notifications>
>
>
> <notificationType>Failed</notificationType>
>
>                                      </notifications>
>
>                                    </group>
>
>
>
>                                    <group name="Modify">
>
>                                               <notifications>
>
>
> <notificationType>Always</notificationType>
>
>                                               </notifications>
>
>                                    </group>
>
>
>
>                                  </groups>
>
>
>
>                                  <converters>
>
>
>                      <ldapConverter domainName="GBLADHEADNI" />
>
>                                          </converters>
>
>
>
>                                          <modifierNotificationTypes>
>
>                                    <NotificationType>Failed</NotificationType>
>
>                                    <NotificationType>Fixed</NotificationType>
>
>                                  </modifierNotificationTypes>
>
>                                  <subjectSettings>
>
>                                    <subject buildResult="StillBroken"
> value="Build is still broken for ${CCNetProject}" />
>
>                                    <subject buildResult="Broken"
> value="${CCNetProject} broke at ${CCNetBuildDate} ${CCNetBuildTime } ,
> last checkin(s) by ${CCNetFailureUsers}" />
>
>                                            <subject
> buildResult="Exception" value="Serious problem for ${CCNetProject}, it
> is now in Exception! Check status of network / sourcecontrol" />
>
>
>
>                                  </subjectSettings>
>
>                                  <xslFiles>
>
>                                    <file>xsl\header.xsl</file>
>
>                                    <file>xsl\compile-msbuild.xsl</file>
>
>                                    <file>xsl\modifications.xsl</file>
>
>                                  </xslFiles>
>
>                                  </email>
>
>                                  <xmllogger />
>
>                                  <statistics />
>
>                     <modificationHistory onlyLogWhenChangesFound="true" />
>
>                    </publishers>
>
> On Sat, Mar 3, 2012 at 8:03 AM, Sunil Singh <[email protected]> wrote:
>> Hi All,
>> Can somebody  share the working syntax for LDAP  Usage.
>>
>> I am trying to use this feature to generate email address but so far
>> no luck.  However if i hardcode it does work.
>>
>> I want to send email to users (user id from VSTS) after each change.
>>
>> Sunil

Reply via email to