Unable to Retrieve Attributes from LDAP Server
I have a problem. I was wondering if anyone can assist me. I am new to LDAP servers and JNDI. I cannot retrieve any attributes from the users listed in my data entry. Any assistance would be greatly appreciated! Thanks.
I created an entry in the LDAP server that looks like this:
�o=somedn�
|
�ou=people, o=somedn�
The �ou=people, o=somedn� entry contains fictitious users. The LDAP server is connected to a MySQL database. When I write Java code to read the attributes of a given user whose fullname (cn) is �Vinny Luigi�, as listed in the database, I receive an error that starts with the following:
javax.naming.NameNotFoundException: [LDAP: error code 32 - No Such Object]; remaining name 'cn=Vinny Luigi,ou=people'
The code I used is based on the Sun JNDI tutorial. Sun�s code is at http://java.sun.com/products/jndi/tutorial/basics/directory/src/GetattrsAll.java. My version of the code is below:
* @(#)GetattrsAll.java 1.5 00/04/28
* Copyright 1997, 1998, 1999 Sun Microsystems, Inc. All Rights
* Reserved.
* Sun grants you ("Licensee") a non-exclusive, royalty free,
* license to use, modify and redistribute this software in source and
* binary code form, provided that i) this copyright notice and license
* appear on all copies of the software; and ii) Licensee does not
* utilize the software in a manner which is disparaging to Sun.
* This software is provided "AS IS," without a warranty of any
* kind. ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND
* WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE
* HEREBY EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE LIABLE
* FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING,
* MODIFYING OR DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN
* NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST
* REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, SPECIAL,
* CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER
* CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT
* OF THE USE OF OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS
* BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
* This software is not designed or intended for use in on-line
* control of aircraft, air traffic, aircraft navigation or aircraft
* communications; or in the design, construction, operation or
* maintenance of any nuclear facility. Licensee represents and warrants
* that it will not use or redistribute the Software for such purposes.
import javax.naming.*;
import javax.naming.directory.*;
import java.util.Hashtable;
* Demonstrates how to retrieve all attributes of a named object.
* usage: java GetattrsAll
class GetattrsAll
static void printAttrs(Attributes attrs)
if (attrs == null)
System.out.println("No attributes");
else
/* Print each attribute */
try
for (NamingEnumeration ae = attrs.getAll(); ae.hasMore();)
Attribute attr = (Attribute) ae.next();
System.out.println("attribute: " + attr.getID());
/* print each value */
for (NamingEnumeration e = attr.getAll(); e.hasMore(); System.out.println("value: " + e.next()) )
} catch (NamingException e) {
e.printStackTrace();
public static void main(String[] args) {
// Set up the environment for creating the initial context
Hashtable env = new Hashtable(100);
env.put(Context.INITIAL_CONTEXT_FACTORY,
"com.sun.jndi.ldap.LdapCtxFactory");
env.put(Context.PROVIDER_URL, "ldap://localhost:10389/o=somedn");
try {
// Create the initial context
DirContext ctx = new InitialDirContext(env);
// Get all the attributes of named object
System.out.println("About to use ctx.getAttributes()");
Attributes answer = ctx.getAttributes("cn=Vinny Luigi,ou=people");
// Print the answer
printAttrs(answer);
// Close the context when we're done
ctx.close();
} catch (Exception e) {
e.printStackTrace();
The primary key of the database is id_pk. Below is a copy of the mapping.xml file which maps the LDAP server entry to the database:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapping PUBLIC "-//Penrose/DTD Mapping 1.2//EN" "http://penrose.safehaus.org/dtd/mapping.dtd">
<mapping>
<entry dn="o=somedn">
<oc>organization</oc>
<oc>top</oc>
<at name="o" rdn="true">
<constant>somedn</constant>
</at>
<aci>
<permission>rs</permission>
</aci>
</entry>
<entry dn="ou=people,o=somedn">
<oc>inetOrgPerson</oc>
<oc>organizationalPerson</oc>
<oc>organizationalUnit</oc>
<oc>person</oc>
<oc>top</oc>
<at name="cn">
<constant>"fullname"</constant>
</at>
<at name="ou" rdn="true">
<constant>people</constant>
</at>
<at name="sn">
<constant>"lastname"</constant>
</at>
</entry>
<entry dn="id_pk=...,ou=people,o=somedn">
<oc>inetOrgPerson</oc>
<oc>organizationalPerson</oc>
<oc>person</oc>
<oc>top</oc>
<at name="Position_">
<variable>usertable9.Position_</variable>
</at>
<at name="id_pk" rdn="true">
<variable>usertable9.id_pk</variable>
</at>
<at name="fullname">
<variable>usertable9.fullname</variable>
</at>
<at name="lastname">
<variable>usertable9.lastname</variable>
</at>
<at name="cn">
<variable>usertable9.fullname</variable>
</at>
<at name="sn">
<variable>usertable9.lastname</variable>
</at>
<source name="usertable9">
<source-name>usertable9</source-name>
<field name="Position_">
<variable>Position_</variable>
</field>
<field name="id_pk">
<variable>id_pk</variable>
</field>
<field name="fullname">
<variable>cn</variable>
</field>
<field name="lastname">
<variable>sn</variable>
</field>
</source>
</entry>
</mapping>
Thanks.
The complete name (Distinguished Name) of the user you're searching is 'cn=Vinny Luigi,ou=people,o=somedn'.
Regards,
Ludovic.
Similar Messages
-
Need help in retrieving attributes from LDAP using JNDI
I am trying to retrieve attributes from LDAP using JNDI, but I'm getting the following error when I try to run my Java program.
Exception in thread "main" java.lang.NoClassDefFoundError: javax/naming/NamingException
I have all the jar files in my classpath: j2ee.jar, fscontext.jar and providerutil.jar. The interesting thing is that it gets compiled just fine but gives an error at run-time.
Could anyone tell me why I'm getting this error? Thanks!
Here's my code:
import javax.naming.*;
import javax.naming.directory.*;
import java.util.*;
import java.io.*;
class Getattr {
public static void main(String[] args) {
// Identify service provider to use
Hashtable env = new Hashtable(11);
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
// user info
String userName = "username";
String password = "password";
// LDAP server specific information
String host = "ldaphostname";
String port = "portnumber";
String basedn = "o=organization,c=country";
String userdn = "cn=" + userName + "," + basedn;
env.put(Context.PROVIDER_URL, "ldap://" + host + ":" + port + "/" + basedn);
env.put(Context.SECURITY_PRINCIPAL, userdn);
env.put(Context.SECURITY_CREDENTIALS, password);
try {
System.setErr(new PrintStream(new FileOutputStream(new File("data.txt"))));
// Create the initial directory context
DirContext ctx = new InitialDirContext(env);
// Ask for all attributes of the object
Attributes attrs = ctx.getAttributes("cn=" + userName);
NamingEnumeration ne = attrs.getAll();
while(ne.hasMore()){
Attribute attr = (Attribute) ne.next();
if(attr.size() > 1){
for(Enumeration e = attr.getAll(); e.hasMoreElements() ;) {
System.err.println(attr.getID() + ": " + e.nextElement());
} else {
System.err.println(attr.getID() + ": " + attr.get());
// Close the context when we're done
ctx.close();
} catch(javax.naming.NamingException ne) {
System.err.println("Naming Exception: " + ne);
} catch(IOException ioe) {
System.err.println("IO Exception: " + ioe);That doesn't work either. It seems its not finding the NamingException class in any of the jar files. I don't know why? Any clues?
-
How to retrieve null-valued attributes from LDAP server.
I am using JNDI api to do search operations on a Java Directory Server( part of SunOne).
However, I found all the attributes that do not have values are automatically filtered out from the search result.
NamingEnumeration answer = ctx.search(ctxName, filterExpr, cons);
while(answer.hasMore()){
SearchResult sr = (SearchResult)answer.next();
Attributes attrs = sr.getAttributes();
for(NamingEnumeration ne = attrs.getIDs();ne.hasMore();){
System.out.println("ids:"+ne.next());
System.out.println("-------------------------------------------------------");
for (NamingEnumeration ae = sr.getAttributes().getAll(); ae.hasMore();) {
Attribute attr = (Attribute)ae.next();
System.out.println("attrName:"+attr.getID());
//System.out.println("attribute: " + attr.getID());
NamingEnumeration e = attr.getAll();
while(e.hasMore()){
System.out.println(" attrVal:"+e.next());
}Is there anything I did wrong here?
Here are a couple of things I noticed,
1. in a Softerra LDAP browser, those no-valued attributes are not present either. But in JXplorer, I can see the full list that includes the attributes that do not have a value.
2. I had Schema disabled in the server console.
Thank you in advance.There are only two ways to read data from Directory Server:
1. a. just fetch the entry
b. display the content
2. a. fetch the entry
b. parse the entry and figure what object classes it is of
c. lookup each object class definition in the schema and retrieve the attribute list
d. combine the attributes of the entry with all the "possible" attributes of its object classe(s)
e. display the content
Here's for an easy example we can relate to:
I have the following entry in my DS
cn=the_duuuuuude,dc=forum,dc=sun,dc=com
objectClass: person
cn: the_duuuuuude
sn: arnaudIf you use method 1, you will get just what is stored in the db. That is:
cn=the_duuuuuude,dc=forum,dc=sun,dc=com
objectClass: person
cn: the_duuuuuude
sn: arnaudif you use method 2, you will get:
cn=the_duuuuuude,dc=forum,dc=sun,dc=com
objectClass: person
cn: the_duuuuuude
sn: arnaud
description:
seeAlso:
telephoneNumber:
userPassword:because when you looked up the 'person' object class you got this:
objectClasses: ( 2.5.6.6 NAME 'person' DESC 'Standard LDAP objectclass' SUP top MUST ( sn $ cn ) MAY ( description $ seeAlso $ telephoneNumber $ userPassword ) X-ORIGIN 'RFC 2256' )Now the important thing to note is that physically in the database, the attributes description, seeAlso, telephoneNumber and userPassword are NOT stored. It's not that they have a 'null' value. They're just not there. It doesn't stop you from looking up the schema.
Optimally, in your client, you would fetch the whole server schema and cache it so you have to do the extra round trip for every entry you process.
The difference you observe with various LDAP browsers might simply be that one uses method 1 and the other method 2.
Hope this helps wrap your mind around this.
-=arnaud=- -
Unable to retrieve mail from server on my account
Hi there.
I am unable since june 26 to retrieve email from the server. I check information on my mail app and i see my mail list store on the server. I also tried to send me an email. But still unable to retrieve it. So i can send email, but enable to get them. I tried to reconstruct the database directly on the server without success.
OSX server 10.4
Does someone have an idea of what i could be?
Thx.
AlainHi
Not a lot to go on is there? However if you use the GUI or the command line its a good idea to stop the mail service before attempting a Reconstruct. In my experience I don't think its ever worked using the GUI. Perhaps others have had more luck?
Following these instructions should get you back on track:
http://docs.info.apple.com/article.html?artnum=107996
You'll get all previously read mail marked as unread but that's easily dealt with. As already stated it's difficult to give any clear advice as you are keeping things to yourself somewhat. The above link assumes its a standard Mail Service setup using the GUI alone.
Tony -
Unable to retrieve tables from this connection
I have been using Dreamweaver for over 5 years. I have been
using an Access database and ASP the entire time. I am using a
Windows 2000 server for the database and web site. I have used
every verson of Dreamweaver since Ultra Dev. When I bought verson 8
and upgraded to 8.0.2, I began getting the following message when I
try to edit or create a recordset.
"Unable to retrieve tables from this connection, click on the
'Define...' button to test this connection."
I don't know what to do. Is this a widespread problem? Is it
a Windows problem? Is it a Dreamweaver problem? Is it a network
problem?
Please HELP!Did you ever get an answer for this ?
I am having the same issue but using XP professional. -
I getting this annoying error "Unable to retrieve clouds on VMM server. Please make sure the server name is correct and try connecting again." I've followed the recommended documentation for setting up SPF and Azure using the following:
http://www.hyper-v.nu/archives/mvaneijk/2013/01/installing-and-configuring-system-center-service-provider-foundation/
I've gone thru the troubleshoot steps from the following:
http://blogs.technet.com/b/scvmm/archive/2014/03/04/kb-the-windows-azure-pack-service-management-portal-does-not-retrieve-cloud-settings.aspx
http://social.technet.microsoft.com/forums/windowsazure/en-US/363e7dae-7370-4605-bc8d-b98fa6dc9d8e/unable-to-register-vmm-server
So you don't need to send me those links.
I found a few others which pointed me to the event logs WindowsAzurePack\MGmtSVC-AdminAPi and AdminSite. In these event logs, I see a lot of event ID 12 and 1046. The contents of event id 12 is the following:
Log Name: Microsoft-WindowsAzurePack-MgmtSvc-AdminSite/Operational
Source: Microsoft-WindowsAzurePack-MgmtSvc-AdminSite
Date: 6/19/2014 3:27:55 PM
Event ID: 12
Task Category: (65522)
Level: Error
Keywords: None
User: IIS APPPOOL\MgmtSvc-AdminSite
Computer: usw-azure-01.uswired.com
Description:
Error:ManagementClientException: Resource not found.
<Exception>
<Type>ManagementClientException</Type>
<Message>Resource not found.</Message>
<StackTrace><![CDATA[
at Microsoft.WindowsAzure.Server.Management.ManagementClientBase.<ThrowIfResponseNotSuccessful>d__2b.MoveNext()
at Microsoft.WindowsAzure.Management.TaskSequencer.<>c__DisplayClass1e`1.<RunSequenceAsync>b__1d(Task previousTask)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.WindowsAzure.Server.SystemCenter.AdminExtension.Controllers.SystemCenterAdminController.<GetResourceProviderAsync>d__2e7.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.WindowsAzure.Server.SystemCenter.AdminExtension.Controllers.SystemCenterAdminController.<GetAutomationResourceProvider>d__2b6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at lambda_method(Closure , Task )
at System.Web.Mvc.Async.TaskAsyncActionDescriptor.EndExecute(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass3f.<BeginInvokeAsynchronousActionMethod>b__3e(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass37.<>c__DisplayClass39.<BeginInvokeActionMethodWithFilters>b__33()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass37.<BeginInvokeActionMethodWithFilters>b__36(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.<>c__DisplayClass2a.<BeginInvokeAction>b__20()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult)]]></StackTrace>
<HttpContext>
<User IsAuthenticated="true" Name="USWIRED\Administrator" />
<Request>
<RawUrl>/SystemCenterAdmin/GetAutomationResourceProvider</RawUrl>
<UserHostAddress>fe80::c179:19c8:c5f2:7309%12</UserHostAddress>
<Headers>
<Header Key="Cache-Control" Value="no-cache" />
<Header Key="Connection" Value="Keep-Alive" />
<Header Key="Content-Length" Value="2" />
<Header Key="Content-Type" Value="application/json" />
<Header Key="Accept" Value="application/json, text/javascript, */*; q=0.01" />
<Header Key="Accept-Encoding" Value="gzip, deflate" />
<Header Key="Accept-Language" Value="en-US" />
<Header Key="Host" Value="usw-azure-01.uswired.com:30091" />
<Header Key="Referer" Value="https://usw-azure-01.uswired.com:30091/" />
<Header Key="User-Agent" Value="Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko" />
<Header Key="x-ms-client-session-id" Value="c343c29d-20b1-412b-be94-879409205700" />
<Header Key="x-ms-client-antiforgery-id" Value="0crwi2qNk20bMr6C04/vKd4L28WG1nd8JKBdOlCCp+xlph40YeL2oTdmeiTkPmE272S2dqmGQMNo+FElKkG2MdR0Xhq41RU/t8PrFjcG0Vgx4a8dgZLbfKVURo9n84F1XWtJOkTTUK/OeNVWBrK1+w=="
/>
<Header Key="x-ms-client-request-id" Value="dcc427c7-40fc-4fdd-9a70-7622969ff40d-2014-06-19 22:27:55Z" />
<Header Key="X-Requested-With" Value="XMLHttpRequest" />
<Header Key="DNT" Value="1" />
<Cookies>
<Cookie Name="AdminSiteFedAuth" Secure="false" Expires="0001-01-01T00:00:00Z" Domain="" Path="/" Value="Redacted (2000 characters)" />
<Cookie Name="AdminSiteFedAuth1" Secure="false" Expires="0001-01-01T00:00:00Z" Domain="" Path="/" Value="Redacted (424 characters)" />
<Cookie Name="__RequestVerificationToken_Admin" Secure="false" Expires="0001-01-01T00:00:00Z" Domain="" Path="/" Value="Redacted (128 characters)" />
</Cookies>
</Headers>
</Request>
</HttpContext>
</Exception>, operationName:SystemCenterAdmin.GetAutomationResourceProvider, version:, accept language:en-US, subscription Id:, client request Id:dcc427c7-40fc-4fdd-9a70-7622969ff40d-2014-06-19 22:27:55Z, principal Id:USWIRED\Administrator, page request
Id:c343c29d-20b1-412b-be94-879409205700, server request id:
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-WindowsAzurePack-MgmtSvc-AdminSite" Guid="{5E78D550-1384-5A96-C12A-CB6DA7BC6365}" />
<EventID>12</EventID>
<Version>0</Version>
<Level>2</Level>
<Task>65522</Task>
<Opcode>0</Opcode>
<Keywords>0x0</Keywords>
<TimeCreated SystemTime="2014-06-19T22:27:55.971935000Z" />
<EventRecordID>399</EventRecordID>
<Correlation ActivityID="{FAA512AF-E0A9-4F2A-80EF-09F72D2F7918}" />
<Execution ProcessID="3424" ThreadID="2308" />
<Channel>Microsoft-WindowsAzurePack-MgmtSvc-AdminSite/Operational</Channel>
<Computer>usw-azure-01.uswired.com</Computer>
<Security UserID="S-1-5-82-4118156790-2181488624-806685255-2797011695-3958995103" />
</System>
<EventData>
<Data Name="message">ManagementClientException: Resource not found.
<Exception>
<Type>ManagementClientException</Type>
<Message>Resource not found.</Message>
<StackTrace><![CDATA[
at Microsoft.WindowsAzure.Server.Management.ManagementClientBase.<ThrowIfResponseNotSuccessful>d__2b.MoveNext()
at Microsoft.WindowsAzure.Management.TaskSequencer.<>c__DisplayClass1e`1.<RunSequenceAsync>b__1d(Task previousTask)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.WindowsAzure.Server.SystemCenter.AdminExtension.Controllers.SystemCenterAdminController.<GetResourceProviderAsync>d__2e7.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.WindowsAzure.Server.SystemCenter.AdminExtension.Controllers.SystemCenterAdminController.<GetAutomationResourceProvider>d__2b6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at lambda_method(Closure , Task )
at System.Web.Mvc.Async.TaskAsyncActionDescriptor.EndExecute(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass3f.<BeginInvokeAsynchronousActionMethod>b__3e(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass37.<>c__DisplayClass39.<BeginInvokeActionMethodWithFilters>b__33()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass37.<BeginInvokeActionMethodWithFilters>b__36(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.<>c__DisplayClass2a.<BeginInvokeAction>b__20()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult)]]></StackTrace>
<HttpContext>
<User IsAuthenticated="true" Name="USWIRED\Administrator" />
<Request>
<RawUrl>/SystemCenterAdmin/GetAutomationResourceProvider</RawUrl>
<UserHostAddress>fe80::c179:19c8:c5f2:7309%12</UserHostAddress>
<Headers>
<Header Key="Cache-Control" Value="no-cache" />
<Header Key="Connection" Value="Keep-Alive" />
<Header Key="Content-Length" Value="2" />
<Header Key="Content-Type" Value="application/json" />
<Header Key="Accept" Value="application/json, text/javascript, */*; q=0.01" />
<Header Key="Accept-Encoding" Value="gzip, deflate" />
<Header Key="Accept-Language" Value="en-US" />
<Header Key="Host" Value="usw-azure-01.uswired.com:30091" />
<Header Key="Referer" Value="https://usw-azure-01.uswired.com:30091/" />
<Header Key="User-Agent" Value="Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko" />
<Header Key="x-ms-client-session-id" Value="c343c29d-20b1-412b-be94-879409205700" />
<Header Key="x-ms-client-antiforgery-id" Value="0crwi2qNk20bMr6C04/vKd4L28WG1nd8JKBdOlCCp+xlph40YeL2oTdmeiTkPmE272S2dqmGQMNo+FElKkG2MdR0Xhq41RU/t8PrFjcG0Vgx4a8dgZLbfKVURo9n84F1XWtJOkTTUK/OeNVWBrK1+w=="
/>
<Header Key="x-ms-client-request-id" Value="dcc427c7-40fc-4fdd-9a70-7622969ff40d-2014-06-19 22:27:55Z" />
<Header Key="X-Requested-With" Value="XMLHttpRequest" />
<Header Key="DNT" Value="1" />
<Cookies>
<Cookie Name="AdminSiteFedAuth" Secure="false" Expires="0001-01-01T00:00:00Z" Domain="" Path="/" Value="Redacted (2000 characters)" />
<Cookie Name="AdminSiteFedAuth1" Secure="false" Expires="0001-01-01T00:00:00Z" Domain="" Path="/" Value="Redacted (424 characters)" />
<Cookie Name="__RequestVerificationToken_Admin" Secure="false" Expires="0001-01-01T00:00:00Z" Domain="" Path="/" Value="Redacted (128 characters)" />
</Cookies>
</Headers>
</Request>
</HttpContext>
</Exception></Data>
<Data Name="requestId">
</Data>
<Data Name="subscriptionId">
</Data>
<Data Name="clientRequestId">dcc427c7-40fc-4fdd-9a70-7622969ff40d-2014-06-19 22:27:55Z</Data>
<Data Name="principalId">USWIRED\Administrator</Data>
<Data Name="version">
</Data>
<Data Name="pageRequestId">c343c29d-20b1-412b-be94-879409205700</Data>
<Data Name="acceptLanguage">en-US</Data>
<Data Name="operationName">SystemCenterAdmin.GetAutomationResourceProvider</Data>
</EventData>
</Event>
Event ID 1046 is
Log Name: Microsoft-WindowsAzurePack-MgmtSvc-AdminSite/Operational
Source: Microsoft-WindowsAzurePack-MgmtSvc-AdminSite
Date: 6/19/2014 3:32:56 PM
Event ID: 1046
Task Category: (116)
Level: Error
Keywords: None
User: IIS APPPOOL\MgmtSvc-AdminSite
Computer: usw-azure-01.uswired.com
Description:
Could not connect to Resource Provider. Error: Resource not found.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-WindowsAzurePack-MgmtSvc-AdminSite" Guid="{5E78D550-1384-5A96-C12A-CB6DA7BC6365}" />
<EventID>1046</EventID>
<Version>0</Version>
<Level>2</Level>
<Task>116</Task>
<Opcode>0</Opcode>
<Keywords>0x0</Keywords>
<TimeCreated SystemTime="2014-06-19T22:32:56.854137500Z" />
<EventRecordID>413</EventRecordID>
<Correlation ActivityID="{C20DBEAD-388F-4CF4-80FD-21C6419CC2F1}" />
<Execution ProcessID="3424" ThreadID="2768" />
<Channel>Microsoft-WindowsAzurePack-MgmtSvc-AdminSite/Operational</Channel>
<Computer>usw-azure-01.uswired.com</Computer>
<Security UserID="S-1-5-82-4118156790-2181488624-806685255-2797011695-3958995103" />
</System>
<EventData>
<Data Name="errorMessage">Resource not found.</Data>
</EventData>
</Event>
The other thing I notice is that when trying to connect to the VMM. It's trying to use domain\username, yet when I try logging in with domain\username via the SCVMM Console. I get the You cannot access VMM management server (Error ID: 1604).
I'm not sure if this is why I can not add the VMM to WAP. Any help would be appreciated. Thanks
NickHello,
I am not sure about the answer but I guess these steps will solve your problem:
1) Log in to the SPF server by using an account that is a member of the SPF_Admin local group.
2) Open an elevated Windows PowerShell window.
3) Type the following commands, and press Enter after you type each command:
Import-module spfadmin
New-SCSPFTenant -Name Administrator -SubscriptionId 00000000-0000-0000-0000-000000000000
4) Close the WAP Server Management Portal, and then reconnect to it to update all items. -
Unable to retrieve collections from the Search Service.
Hi,
I have a user trying to upload a collection. She gets the
following error:
Unable to retrieve collections from the Search Service.
Please verify that the ColdFusion MX Search Server is
installed and running.
Obviously, I checked the service. It was running. I restarted
the service. That did nothing. I restarted all the CF services.
Didn't fix the issue. I also rebotted the server, not expecting
that to work. It didn't.
Checking the server logs, I see this:
The description for Event ID ( 105 ) in Source ( ColdFusion
MX 7 Search Server ) cannot be found. The local computer may not
have the necessary registry information or message DLL files to
display messages from a remote computer. You may be able to use the
/AUXSOURCE= flag to retrieve this description; see Help and Support
for details. The following information is part of the event:
ColdFusion MX 7 Search Server.
Also, after talking to my co-worker more, it turns out this
occurred right after she uploaded a new collection to the
administrator. This link sounds similar to what I'm experiencing:
http://kb.adobe.com/selfservice/viewContent.do?externalId=6c6881a9
Maybe it's a corrupt collection?
but I don't see any errors in the log
(:\CFusionMX7\verity\Data\services\ColdFusionK2_indexserver1\log\status.log)
Finally, there are some errors in the Verity service, and it
looks like the Verity service Verity K2Server (Version 2.20pr6)
points to D:\CFusionMX\lib\k2server.exe, which doesn’t exist
anymore because we’ve upgraded to MX7.I'm not sure if this is
an old service left over from before we upgraded from CFMX to
CFMX7.
We are running CFMX7 on a Windows 2003 Server SP1 if that
matters.
Thanks in advance for any help.In the left hand panel of the ColdFusion Administrator expand
the Data & Services link. Then select the Verity K2 Server
link. Change localhost to 127.0.0.1 in the Verity Host Name
textbox.
Ted Zimmerman -
AAE - Error - Unable to retrieve MappingInterfaceLocalHome from JNDI while
Hi Friends,
We have an interface which runs in AAE. (Advanced Adapter Engine, PI 7.1, EHP1)
Sender is SOAP, Async Call.
We have used the condition to determine receiver. One Receiver is SOAP (by remove proxy) and another one receiver is RFC.
When we check the messages, in message monitoring, database overview, those are failed with error "
Unable to retrieve MappingInterfaceLocalHome from JNDI while invoking the mapping"
Detailed error is as below:
Execution of mapping "http:/bigbiz.com/xi/MDM/IM_MATERIALUPDATE" failed. Reason: MappingException: Unable to retrieve MappingInterfaceLocalHome from JNDI while invoking the mapping, NamingException: Exception during lookup operation of object with name localejbs/MappingBean, cannot resolve object reference., javax.naming.NamingException: Error occurs while the EJB Object Factory trying to resolve JNDI reference Reference Class Name: Type: clientAppName Content: sap.com/com.sap.xi.services Type: interfaceType Content: local Type: ejb-link Content: MappingBean Type: jndi-name Content: MappingBean Type: local-home Content: com.sap.aii.ibrun.sbeans.mapping.MappingAccessLocalHome Type: local Content: com.sap.aii.ibrun.sbeans.mapping.MappingAccessLocal com.sap.engine.services.ejb3.runtime.impl.refmatcher.EJBResolvingException: Cannot start applicationsap.com/com.sap.xi.services; nested exception is: java.rmi.RemoteException: [ERROR CODE DPL.DS.6125] Error occurred while starting application locally and wait.; nested exception is: com.sap.engine.services.deploy.exceptions.ServerDeploymentException: [ERROR CODE DPL.DS.5106] The application .....
I confuse why suddenly this error comes, since it was working fine earlier. The message status is now 'To Be Delivered'.
Can you kindly clarify friends how to fix this ?
Kind regards,
Jegathees P.Hi,
PI 7.1 Ehp1 receiver determination can be done conditionally by selecting operation specific...
I don't think this error is related to AAE ...looks like this error is related to server ...
check other mappings also whether they are executed with out any error ?
this is related to module lookup error...need to check with the basis
HTH
Rajesh -
Hi everybody,
I'm running in an urgent problem, because binding to my OpenDirectory got lost. I've lots of "Module: AppleODClientLDAP - unable to open connection to LDAP server - unable to create connection context" messages in the system.log and OD service stoppped running. In the OD-section no server is listed any longer and all buttons are greyed. All network users for sure are not available, but all other services are up. I didn't changed anything to the existing services but started with the netinstall config. I got the following entries in the systemlog
Jun 19 00:35:30 macminiserver.homenet bootpd[95005]: server name macminiserver.homenet
Jun 19 00:35:30 macminiserver.homenet bootpd[95005]: interface en0: ip 192.168.0.11 mask 255.255.255.0
Jun 19 00:35:30 macminiserver.homenet bootpd[95005]: subnets: Failed to convert 'domain_search': Empty array
Jun 19 00:35:30 macminiserver.homenet bootpd[95005]: bsdpd: re-reading configuration
Jun 19 00:35:30 macminiserver.homenet bootpd[95005]: bsdpd: shadow file size will be set to 48 megabytes
Jun 19 00:35:30 macminiserver.homenet bootpd[95005]: bsdpd: age time 00:15:00
Jun 19 00:35:30 macminiserver.homenet bootpd[95005]: bsdpd: no NetBoot images found
Jun 19 00:35:30 macminiserver.homenet bootpd[95005]: bootpd: NetBoot service turned off
Jun 19 00:35:30 macminiserver.homenet bootpd[95005]: DHCP REQUEST [en0]: 1,0:1b:77:36:47:f6 <NB01>
Jun 19 00:35:30 macminiserver.homenet bootpd[95005]: ACK sent NB01 192.168.0.107 pktsize 304
Since these logentries appeared, no network users and groups are available anymore. I'm running OS X ML 10.8.3 and DNS is fine.
Are there any steps to perform to get LDAP working again? With all buttons in the server admin OD section greyed out I even can't setup a new directory.
BR
JensI was able to restore the existing server with the automatic OD backup that Server.app creates. When my OD fails to start after a crash and db_recover commands don't work, it's always worked for me to restore the odmaster from a backup using the command:
sudo slapconfig -restoredb /private/var/backups/ServerBackup_OpenDirectoryMaster.sparseimage
I'm careful to keep an independent OD backup with Carbon Copy Cloner and this preflight script.
You can also grab an earlier version of the sparse image ServerBackup_OpenDirectoryMaster.sparseimage from a Time Machine backup. It's also possible to rsync the database files directory from a Time Machine backup. -
Error :Unable to retrieve data from iHTML servlet for Request2 request
I open bqyfile to use HTML in workspace.
When I export report to excel in IR report.
Then I press "back" button I get error"Unable to retrieve data from iHTML servlet for Request2 request "
And I can not open any bqyfiles in workspace.
Anybody gat the same question? Thanks~Hi,
This link will be helpful, the changes is made in the TCP/IP parameter in the registry editor of Windwos machine. I tried the 32 bit setting for my 64 bit machine (DWORD..) and it worked fine for me..
http://timtows-hyperion-blog.blogspot.com/2007/12/essbase-api-error-fix-geeky.html
Hope this helps.. -
How do I stop imac from retrieving email from my server?
I no longer want my mac to retrieve email from my server (sbcglobal). How do I stop it from doing that?
Open the Mail app>go to the word MAIL in the upper left corner of your desktop and click on it>Preferences>Accounts tab>Delete the "Incoming Mail Server" entry on the right.
Hope this helps -
I have been unable to retrieve emails from my external disk. I entered the Time Machine and tried to go to April 2013, but could not find emails. I have Lion OS X 10.7.5 .Thanks!
CeciliaI have been unable to retrieve emails from my external disk. I entered the Time Machine and tried to go to April 2013, but could not find emails. I have Lion OS X 10.7.5 .Thanks!
Cecilia -
Unable to retrieve information from the sync server
This only just started after I updated to the new 3.1 software, which included an update to the Mobile Me control panel. I sure would love to fix it, because the error message pops up every 20 seconds. My phone is syncing with MM and with my PC.Also,i have been ok with retrieving my job bids from http://www.besteventstaff.com since i signed up.Which was over 2 weeks ago but today everything won't load.I contacted the admin at Best Event Staff and hey are telling me they haven't had any other complaints.Pls help me out here.Why has things stopped loading so suddenly?Thanks in advance
I have notes from my palm days too! If you haven't resolved this, below there is a "more like this" set of links. One of them lists four solutions to this problem including how I resolved mine. Good luck!
Re: How do I resolve "unable to retrieve conflict information from the sync server" when syncing with Outlook -
Retrieve multiple user's DisplayName values from LDAP server
Hi,
I have a report in answers, which will show the UserIds information pulling from a database table. These users information is stored in the LDAP server and I want to retrieve the DisplayName or FirstName-LastName (if possible) of the userids that I have in the report.
Any pointers on how can I implement that in the repository by using IB, by defining variables etc?
Thanks in advance.
Rajesh GurramI created PL/SQL table function to get users from ldap and view based on it (Oracle database).
create or replace
type ldap_users_t as object(
dn varchar2(200),
full_name varchar2(200),
user_name varchar2(200),
reg_number number,
email varchar2(200)
create or replace
TYPE ldap_users_t_ct as table of ldap_users_t;
create or replace
function get_ldap_users return ldap_users_t_ct PIPELINED
is
out_rec ldap_users_t := ldap_users_t (null,null,null,null,null);
retval PLS_INTEGER;
ldap_session DBMS_LDAP.SESSION;
ldap_attrs DBMS_LDAP.string_collection;
ldap_message DBMS_LDAP.MESSAGE;
ldap_entry DBMS_LDAP.MESSAGE;
ldap_dn VARCHAR2 (256);
ldap_attr_name VARCHAR2 (256);
i PLS_INTEGER;
user_name DBMS_LDAP.string_collection;
full_name DBMS_LDAP.string_collection;
reg_number DBMS_LDAP.string_collection;
email DBMS_LDAP.string_collection;
ldap_host VARCHAR2 (256);
ldap_port VARCHAR2 (256);
ldap_user VARCHAR2 (256);
ldap_passwd VARCHAR2 (256);
ldap_base VARCHAR2 (256);
BEGIN
retval := -1;
ldap_host := '********************';
ldap_port := '********************';
ldap_user := '********************';
ldap_passwd := '********************';
ldap_base := '********************';
DBMS_LDAP.use_exception := TRUE;
ldap_session := DBMS_LDAP.init (ldap_host, ldap_port);
retval := DBMS_LDAP.simple_bind_s (ldap_session, ldap_user, ldap_passwd);
ldap_attrs (1) := '*';
retval :=DBMS_LDAP.search_s (ldap_session, ldap_base,DBMS_LDAP.scope_subtree,
'objectclass=*',ldap_attrs,0,ldap_message);
ldap_entry := DBMS_LDAP.first_entry (ldap_session, ldap_message);
WHILE ldap_entry IS NOT NULL
LOOP
ldap_dn := DBMS_LDAP.get_dn (ldap_session, ldap_entry);
user_name := DBMS_LDAP.get_values (ldap_session, ldap_entry, 'uid');
full_name := DBMS_LDAP.get_values (ldap_session, ldap_entry, 'cn');
reg_number := DBMS_LDAP.get_values (ldap_session, ldap_entry, 'employeeNumber');
email := DBMS_LDAP.get_values (ldap_session, ldap_entry, 'mail');
out_rec.dn:=ldap_dn;
out_rec.user_name:=null;
out_rec.full_name:=null;
out_rec.reg_number:=null;
out_rec.email:=null;
IF user_name.COUNT > 0
THEN out_rec.user_name:=user_name(0);
END IF;
IF full_name.COUNT > 0
THEN out_rec.full_name:=full_name(0);
END IF;
IF reg_number.COUNT > 0
THEN out_rec.reg_number:=reg_number(0);
END IF;
IF email.COUNT > 0
THEN out_rec.email:=email(0);
END IF;
ldap_entry := DBMS_LDAP.next_entry (ldap_session, ldap_entry);
pipe row(out_rec);
END LOOP;
retval := DBMS_LDAP.msgfree (ldap_message);
retval := DBMS_LDAP.unbind_s (ldap_session);
END;
create or replace view scr_ldap_users_v as select * from table(get_ldap_users); -
ALSB 3.0: Unable to retrieve files from Novell FTP Server
I have written several ALSB proxy services that retrieve data from Unix FTP servers. This works great and I haven't experienced any major issues. However, I now have to write a service that monitors a directory on a Novell FTP server. The same exact code works great pointed against a unix ftp server, but when pointed against the Novell FTP server, the proxy service never finds any files to process even though I have manually connected to that ftp server using the same id/password and have been able to see the files.
All the proxy is supposed to do is poll for files and copy them to the ALSB server for processing. Very very simplistic and works great against a Unix ftp server.
I turned on the transport debug option and this is all that shows:
<Ftp Client created and connected successfully for '+my_server+:21 for user:+myuserid+>
<+FileWorkPartitioningAgent.execute()>
<Returning 0 tasks.>
<-FileWorkPartitioningAgent.execute()>
We ran a packet trace on the server and we see the following commands being executed:
User myuserid
mypassword
SYST
TYPE i
PASV
list .
TYPE i
PASV
list .
quit
The files are in the "landing" directory for the user, so I am certain that it isn't a pathing issue. I'm just running out of ideas.
Some questions I have are:
1. has anyone experienced/resolved this issue before?
2. is there any way to do custom configuration of the ftp client (disable the PASV aka passive mode, enable debugging, etc) used by the FTP transport?
3. Could the FTP Transport not like the format of the list results from the Novell FTP server?
If anyone has any thoughts, I'd love to hear them.
Thanks!Hi Iccarus
I realise its been quite a while since you wrote this thread but, in my desperation, I hoped you might have made some progress on this. I too am having almost identical issues:
1. Can get/put files via ALSB ftp from/to unix or microsoft ftp server
2. Can put files via ALSB ftp to the problem ftp server (not sure of its flavour atm)
3. Can get/put files from the command line from/to the problem ftp server
4. Cant get files via ALSB ftp from the problem server
The commands which were executed at the problem server are very similar to those you found:
successful login
ls
ls
quit
Any insights would be greatly appreciated
Maybe you are looking for
-
Office 2013 converting to app-v gives xml error in manifest file
Hello, I'm trying to create na app-v package (v.5 SP2) of Office 2013. I downloaded the Office Deployment Tool for Click-to-Run from here: http://www.microsoft.com/en-us/download/details.aspx?id=36778 I installed it into C:\Office2013pck shared that
-
Centering a single character horizontally AND vertically on a page
This should be simple, yet I see no way of achieving the desired result. Please see this screenshot: http://bit.ly/gQY5mB I selected the number "2", as you can see. See all that vertical "empty space" above the "2"? I get that with all characters.. w
-
Can I print the date and time using aperture 4
Work inspectors require that I provide pictures with date and time of creation from the metadata info. I was looking at google searches and found Aperture with borderFX plug in might work. Can anyone confirm this is a fact? I would hate to pay for
-
How to create two UILoader that can be nested with each other and save the parent UILoader - as3
Hi all, I am currently researching on the problem but I can't find any solution in the web. Here is my problem: I have two UILoader instance (loader_inner and loader_outer) I need to have loader_inner to be part of the loader_outer. I have also a but
-
Helix / Mini-port to vga / Monitor flickers
New Helix. New mini-vga to vga adaptor. Two different monitors. Same issue .... the monitors blink and are unusable. Have updated every driver that I can think to update. Any ideas?