5 ms·
There is such a beast, it's called LDAP. There are any number of directory and authorization services, and they have probably been around for decades. There ar
by Spooky23 12y ago
There is such a beast, it's called LDAP. There are any number of directory and authorization services, and they have probably been around for decades.
There are dozens of directory server options, and probably a few dozen secure authorization solutions, from Kerberos and SAML to proprietary solutions like SiteMinder. Together, these solutions give you EIAM capability that does what you described.
- andrewstuart 12y agoMy uninformed perception of OpenLDAP is that it is a large, generalised enterprise class directory service that does alot of stuff. The post suggests a minimal, lightweight user database that does nothing at all else - is that the same thing as OpenLDAP?
- smoyer 12y agoTry OpenLDAP with Fortress and you get a RESTful interface and ANSI RBAC compliant roles and permissions.
- Spooky23 12y agoPretty much. I wouldn't characterize the magical detection of uncommon access patterns as a minimalist feature (it can be done, but not out of the box in a meaningful way), but other than that, all of the stuff you mentioned is there. Typically, you use LDAP as a directory store, and a dedicated authentication protocol like Kerberos or SAML for authentication. You can also use LDAP for auth if desired. If you want to go deep on identity management, the NIST documents are pretty much the canonical source of information. http://csrc.nist.gov/projects/iden_ac.html http://csrc.nist.gov/projects/iden_ac.html In any case, don't reinvent the wheel. Just because bozos implement user auth in a MySQL table doesn't mean solutions don't exist. It just means that they are bozos. It's one of the reasons I disapprove use of SaaS apps that don't support federated identity at work.
- andrewstuart 12y agoDoes OpenLDAP meet the stated need for a minimal solution that does nothing else apart from the small set of required functions? I get the impression that OpenLDAP is a big beast that does much, much more. I'm wanting a fast motorbike and you're pointing at a 16 wheel heavy hauler saying "see, same thing, the hauler has at least two wheels and an engine".
- Spooky23 12y agoNote I didn't endorse OpenLDAP at all. Not sure if that's the best solution -- I'd probably steer towards 389 server or something similar with Netscape heritage. You also said: "Another problem is that developers roll their own user and password management systems and get things like salting and hashing wrong, making the data vulnerable." You're asking for a distributed, secure system for processing user data and credentials. The most common systems in production globally for doing this (Microsoft Active Directory) are based on technologies developed in the 80's and only being supplanted in recent years. There's a reason for that, and if it were a trivial problem, we wouldn't have pervasive solutions using 1980s RPC in 2015 still running most businesses!
- untog 12y agoThere is sometimes a reason for a piece of software being large. Security is one of those reasons. If you want a secure system you shouldn't be prioritising a "minimal solution". As the previous poster said, don't reinvent the wheel.
- ubernostrum 12y agoI wouldn't characterize the magical detection of uncommon access patterns as a minimalist feature (it can be done, but not out of the box in a meaningful way) I'm not even sure about a meaningful way. For sake of portability the DB will need to have some way to dump everything. And if a server admin can do that, then someone who can get the same access as a server admin can do it, and we're back to square one.
- SFjulie1 12y agoLDAP is a network protocol. It supports a lot of backends (SQL and NoSQL alike) (openLDAP has nice proxy features) It also supports role based authentication. But at the opposite of actual NoSQL data bases, even though it has no structures, it is strongly typed and secure. You map your NoSQL structures to structured backend through a mapping. It is awesome but most devs hates it, because they are (at my opinions) ignorants. And developers hates it because they are lazy.
- hyc_symas 12y agoOpenLDAP comes with a lot of optional modules to implement enterprise directory features. You don't need to use them all. You can build a minimal OpenLDAP system that's dedicated to user authentication that runs in under 4MB of RAM, with full TLS/SASL/GSSAPI security. You can't even do that with SQLite, the SQLite binary alone is 2MB and that doesn't give you any network interface or security features.
- gnu8 12y agoThanks for providing the voice of reason in this conversation.
- halostatue 12y agoTrue, but having been involved in the development of an LDAP client, LDAP is a horribly complex system to implement against (and its built on top of ASN.1, which is possibly worse) and it was slow to get security features (LDAPS, etc.)—and in many cases, no two LDAP servers work quite the same (the most common LDAP server, ActiveDirectory, is the worst for this). There is a need for something secure by default that is easy to use, easy to set up, easy to deploy, etc. Where this will be difficult is https://xkcd.com/927/ https://xkcd.com/927/.
- viraptor 12y agoWhile technically you're right (as in, LDAP is great for handling many user entries and auth[nz] correctly), in practice it's not going to happen. Nobody knows LDAP (as in, take a random sample of non-corporate developers and most likely none of them will know LDAP). It's a pain to integrate and operate in a small environment. That's why there's a call for a simple solution. It's why everyone uses JSON and not ASN.1. Why people will save a single number in a file rather than standing up Oracle database. Or why they still use random invented rot-level "encryption" for messages rather than pgp. LDAP doesn't expose operations like "create new user", "verify password", "deactivate user", "set encryption method to ...". It's a database where you "bind" your user description against your hierarchy of objects/attributes - explain that to a guy who just wants to get his new app idea working ASAP... It's got its own query language too. You can even do LDAP query injections - just like in SQL! Like you said - LDAP is a beast. It's great and I'd use it as soon as number of users goes over 10k, or employees on different levels over 10. But otherwise, no way. A new component with its own security issues is just not worth it.
- voltagex_ 12y ago(Active Directory trigger warning) Even when the number of users goes over 10k I'm not sure it's worth it. I've lost days chasing down random errors to do with DNS or a misbehaving DC... when the error reference looks like http://www.selfadsi.org/errorcodes.htm http://www.selfadsi.org/errorcodes.htm (although I wish I'd known about MS's err.exe at the time) And that's just when you're using the recommended connectors (ODBC/ADO.NET). FSM help you if you're using JDBC and the vendor of the $20k+ product hasn't tested against Server 2012. I wonder if there's any money in providing an LDAP/AD -> REST server. http://stackoverflow.com/questions/2453769/active-directory-as-openid-provider http://stackoverflow.com/questions/2453769/active-directory-... might be an idea, too.
- hyc_symas 12y agoBuzz, wrong - no such thing as LDAP injection attacks, sorry.
- viraptor 12y ago
- bagels 12y agoCan existing LDAP implementations scale a single directory to hundreds of millions of users? I can find no clear answer after a few minutes of searching.
- viraptor 12y agoOpenLDAP is limited by LMDB, which is pretty much limited only by what your filesystem and address space can handle. For scaling out it does support multi-master and slave configurations. So yes, it should.
- beagle3 12y agoYou can probably list the organizations (outside of China, perhaps) that have over a hundred million of users in a twitter message - (Facebook;Twitter;Google;Walmart;WhatsApp;Instagram;Hotmail;Snapchat;Yahoo;IRS[0];Blizzard;AOL;AT&T;Verizon) is probably more than 30% of the list already. And AFAIK not a single one of them uses LDAP - but assume one of them does. So, practically speaking - does it matter? [0] And equivalent for each country with >70M people
- hyc_symas 12y agoYou're quite wrong here. Google, AT&T and Verizon on your list use OpenLDAP. OpenLDAP scales to billions of users in a single instance, and of course it distributes across multiple nodes for even greater scaling as needed. Most of the telcos around the world use it now; it scales far beyond every other data storage technology out there. http://symas.com/docs/2014-LOADays-jkozyra.pdf http://symas.com/docs/2014-LOADays-jkozyra.pdf 80% of the US population that owns cellphones are OpenLDAP users, whether they realize it or not. 90% of the US population that subscribes to cable TV (Comcast, Time-Warner, etc.) as well. Nothing else actually works for hundreds of millions of users. These companies know, they've tried a lot of "solutions" already.
- beagle3 12y agoThen I'm glad to stand corrected - I suppose I'm horribly out of date from the days they tried other "solutions". I'm less surprised about AT&T and Verizon, more surprised about Google. My own personal experience with LDAP in general (and some with OpenLDAP in particular) dates back to 2000 or so -- and at some point I just gave up on the complex and unreliable beast that it was (for whatever reason, BDB would occasionally lock up or get corrupted) - but I know a lot has changed since, LMDB is amazing -- I guess it is time for another look.