hannehomuth
July 3rd, 2008, 02:21 PM
Hi Everyone,
I'd like to ask you a question. I wanna store some pw into the Gnome Keymanger. I use java and I've written a wrapper for the native libary. But when I wanna insert a pw it is not be shown in there. Here some code
JNIEXPORT jboolean JNICALL Java_de_sourcepark_ldap_KeyRingConnector_addPasswo rdToKeyRingManger (JNIEnv *env, jobject obj)
{
#define false 0
#define true (!false)
printf("wanna create pw \n");
gnome_keyring_store_password(GNOME_KEYRING_NETWORK _PASSWORD,
GNOME_KEYRING_SESSION,
"Mein Ldap Passwort",
"testpw",
stored_password,
NULL,NULL,
"user","jhomuth",
"protocol","ldap",
"domain","localhost",
"port",389,
NULL
);
printf("I sould have created it");
return true;
}
But is not be shown in the mangager. When I type into console gnome-keyring-manager there is only The keyring session shown. Look I at the wrong location ?
I'd like to ask you a question. I wanna store some pw into the Gnome Keymanger. I use java and I've written a wrapper for the native libary. But when I wanna insert a pw it is not be shown in there. Here some code
JNIEXPORT jboolean JNICALL Java_de_sourcepark_ldap_KeyRingConnector_addPasswo rdToKeyRingManger (JNIEnv *env, jobject obj)
{
#define false 0
#define true (!false)
printf("wanna create pw \n");
gnome_keyring_store_password(GNOME_KEYRING_NETWORK _PASSWORD,
GNOME_KEYRING_SESSION,
"Mein Ldap Passwort",
"testpw",
stored_password,
NULL,NULL,
"user","jhomuth",
"protocol","ldap",
"domain","localhost",
"port",389,
NULL
);
printf("I sould have created it");
return true;
}
But is not be shown in the mangager. When I type into console gnome-keyring-manager there is only The keyring session shown. Look I at the wrong location ?