[Mono-list] Ldap and Mono.Unix, is it a bug?

Arx Henrique arxcruz at gmail.com
Thu May 18 14:33:53 EDT 2006


Hi all,

when i call this method:

UnixUserInfo[] usuarios = Mono.Unix.UnixUserInfo.GetLocalUsers();

and my ldap server is up, i got this exception:

Unhandled Exception: System.IO.FileNotFoundException:  ---->
Mono.Unix.UnixIOException:
in [0x00005] (at
/home/ingo/mono-1.1.13.6/mcs/class/Mono.Posix/Mono.Unix/UnixMarshal.cs:446)
Mono.Unix.UnixMarshal:ThrowExceptionForLastError ()
in [0x0004f] (at
/home/ingo/mono-1.1.13.6/mcs/class/Mono.Posix/Mono.Unix/UnixUserInfo.cs:167)
Mono.Unix.UnixUserInfo:GetLocalUsers ()
in [0x00000] (at
/home/arx/Projects/AcessaDesktop/Acessa.Importacao/TreeUsuariosUnix.cs:47)
Acessa.Importacao.TreeUnix:AddUsuario ()
in [0x00044] (at
/home/arx/Projects/AcessaDesktop/Acessa.Importacao/TreeUsuariosUnix.cs:17)
Acessa.Importacao.TreeUnix:.ctor ()
in [0x0008b] (at
/home/arx/Projects/AcessaDesktop/Acessa.Importacao/Assistente.cs:166)
Acessa.Importacao.AssistenteImportacao:CreateHomeSel ()
in [0x000d7] (at
/home/arx/Projects/AcessaDesktop/Acessa.Importacao/Assistente.cs:59)
Acessa.Importacao.AssistenteImportacao:InitializeComponents ()
in [0x00007] (at
/home/arx/Projects/AcessaDesktop/Acessa.Importacao/Assistente.cs:34)
Acessa.Importacao.AssistenteImportacao:.ctor ()
in [0x00000] (at
/home/arx/Projects/AcessaDesktop/Acessa.Importacao/Importacao.cs:48)
Acessa.Importacao.DruidImportacao:OnButtonClicked (System.Object
sender, System.EventArgs args)
in (wrapper delegate-invoke)
System.MulticastDelegate:invoke_void_object_EventArgs
(object,System.EventArgs)
in <0x00093> GLib.Signal:voidObjectCallback (IntPtr handle, IntPtr gch)
in (wrapper native-to-managed) GLib.Signal:voidObjectCallback (intptr,intptr)
in <0x00000> <unknown method>
in (wrapper managed-to-native) Gtk.Application:gtk_main ()
in <0x00007> Gtk.Application:Run ()
in <0x00007> Gnome.Program:Run ()
in [0x00038] (at
/home/arx/Projects/AcessaDesktop/Acessa.Core/Main.cs:22)
Acessa.Core.MainApp:Main (System.String[] args)

when i stop my ldap server, everthing works perfectly.

any sugestion?

I use:
Debian Unstable
Mono C# compiler version 1.1.13.6

And sadly i cant upgrade to new mono version... :(

-- 
"A fé remove montanhas, mas eu prefiro a dinamite"


More information about the Mono-list mailing list