LDAP-Admin icon indicating copy to clipboard operation
LDAP-Admin copied to clipboard

connections are not saved

Open drlight17 opened this issue 1 year ago • 6 comments

Hello! Thank you for this project! It works with Samba AD, but after application restart there is empty connections list in default private storage. File ~/.config/LdapAdmin/reg.xml is in the place and contains saved connections data, but seems like app can't read it... Did I miss something?

drlight17 avatar Jun 18 '24 07:06 drlight17

Hi, similar problem is fixed #17 and #6.

ibv avatar Jun 18 '24 15:06 ibv

Hi, similar problem is fixed #17 and #6.

Oh, didn't see this... And this issue can not be fixed permanently (without manually editing files)?

drlight17 avatar Jun 19 '24 11:06 drlight17

LDAP-Admin is originally written for Windows, where registries are used to store user data, on Linux the behavior of registries is emulated using an xml file. How individual registry keys are accessed on Linux depends on the fpc compiler. I'll try to look into it.

ibv avatar Jun 27 '24 06:06 ibv

Nice! Thank you for your work! Offtopic: any chance to compilte this port to work at Mac? I've tried but have access violation error when adding new ldap server and tried to fetch DN...

drlight17 avatar Jun 27 '24 07:06 drlight17

Access violation most often means access to memory that is not filled with data, e.g. the object is not created correctly. If the compilation from Lazarus works on MacOS, then the code must be stepped through the debugger, e.g. the ConnPropDlg.FetchDnBtnClick procedure in the ConProp.pas file o-78

ibv avatar Jun 27 '24 10:06 ibv

Access violation most often means access to memory that is not filled with data, e.g. the object is not created correctly. If the compilation from Lazarus works on MacOS, then the code must be stepped through the debugger, e.g. the ConnPropDlg.FetchDnBtnClick procedure in the ConProp.pas file

Oh, sorry!.. Access violation is not in this project... But I'll try to debug soon, thanks.

drlight17 avatar Jun 27 '24 12:06 drlight17