Lightweight Directory Access Protocol, an application protocol for reading and editing directories over an IP network.
3
votes
1answer
48 views
Authentication via LDAP and authorisation via JDBC
I have a custom AuthenticationProvider for getting authentication via LDAP and authorisation via JDBC. It's running but I think it's not the best way.
My custom ...
2
votes
0answers
53 views
Escape Characters for LDAP/ADSI string
Below's some code I knocked up to escape the account name to be used in creating an ADSI reference to an account (e.g. escaping $sAmAccountName before using in <...
4
votes
2answers
725 views
LDAP Login Script
This is my first time ever having code peer reviewed! This is just the main function I'm concerned about.
Edit
Apologies for the initial vagueness of my question, this is the "login" part of my ...
1
vote
0answers
40 views
Uploading LDAP search results to an FTP server
I know this is quite a generic question, I was hoping it could stay open so I can try to improve my styles.
Basically, I have an application that connects to LDAP, performs searches, and produces a ...
4
votes
0answers
270 views
PowerShell GUI to display information about users
I have a GUI file which is currently being ran by VBS, but I have a few issues:
PowerShell v2 is what is being run on every machine and I cant change that, runs very slow on first time launch. it ...
1
vote
0answers
4k views
Active Directory + LDAP Queries
I've been trying to figure out the best way to query Active Directory with JavaScript. The code below is the best I can come up with.
I was hoping someone could/would review my JavaScript code to see ...
6
votes
4answers
426 views
Obj-C wrapper for OpenLDAP
This section of code reside in a utility class (LDAPUtility). It's purpose is to subscribe or unsubscribe a user from an LDAP group. My main questions are if I am using the LDAP library correctly and ...
4
votes
2answers
129 views
Addressing possible strategic problems with LDAP module and unit testing code
I'm a sysadmin writing a tool to perform administrative tasks on our upcoming new account management system that runs over LDAP. I want the tool to be highly flexible, configurable, and reliable, so I'...
5
votes
3answers
2k views
Join strings from a List<string> while also formating them
The code I have wrote works fine, this inquiry being purely for educational purposes. I want to know how others would do this better and cleaner. I especially hate the way I add the list items to ...
7
votes
2answers
429 views
Use different contructors of disposable class
I have a very simple helper class to validate credentials. Sometimes the domain has a value, sometimes not. Depending on this, a different constructor for ...
3
votes
1answer
999 views
5
votes
2answers
3k views
ASN.1 BER Encoding and Decoding
I have a project (ldaplib) I am working on that needs to do ASN1-BER decoding and encoding. The function I have for the decoding portion is slightly more complex but neither are all that complicated. ...
2
votes
1answer
123 views
LDAP Library design, classes, functions, initialization?
I have started working on my first open source project making an LDAP library in Python. I have coded quite a bit and am starting to think about a couple of the details related to design.
I have ...
1
vote
1answer
633 views
Whitelist input data for a lookup by name
I'm whitelisting the input data to an LDAP/AD search on 'sn' (=surname). The purpose is to stop penetration attacks through the app and into the LDAP servers (i.e. no brackets, please).
...
2
votes
4answers
3k views
Password expiry notification script
I've just solve one problem that notifies users if their password is going to expire in 14 days. The script is working fine. I just want to improve my code and desire some suggestions.
...