1 00:00:12,860 --> 00:00:16,640 My colleague works at One Secure, and he's going to talk to you about LDAP. 2 00:00:23,560 --> 00:00:29,380 Hi. Just to give you a background about me, some of you may know me as XS. 3 00:00:29,380 --> 00:00:31,280 You can call me Greg, whichever you want. 4 00:00:32,900 --> 00:00:38,400 I work with Pete at a security vendor of sorts in the Bay Area. 5 00:00:38,860 --> 00:00:43,180 I'm a security engineer over there, so I don't really work with LDAP every day. 6 00:00:44,220 --> 00:00:48,080 A little bit of my background with LDAP is when I was first brought on board, 7 00:00:48,760 --> 00:00:52,720 I was asked to implement a new mail and user system, 8 00:00:53,200 --> 00:00:55,260 and I was looking at a couple different options, 9 00:00:55,320 --> 00:00:59,120 either like a SQL backend or a virtual user backend, 10 00:00:59,380 --> 00:01:04,600 and I kept hearing things about LDAP, and I'd never used it before. 11 00:01:05,020 --> 00:01:07,460 So I figured, eh, let's see what I could use it for. 12 00:01:07,780 --> 00:01:15,720 And it turns out my favorite MTA, Qmail, has a patch for it called Qmail LDAP, 13 00:01:15,740 --> 00:01:20,260 which lets you use a LDAP backend for user authentication, aliasing, et cetera. 14 00:01:21,300 --> 00:01:22,780 That's pretty much how I picked it up. 15 00:01:24,500 --> 00:01:28,120 Unfortunately, the project I was working on was kind of canceled. 16 00:01:28,580 --> 00:01:29,360 So I had to go back to Qmail LDAP, and I had to go back to Qmail LDAP, 17 00:01:29,380 --> 00:01:34,220 and I haven't had much other implementation work with LDAP aside from that. 18 00:01:34,420 --> 00:01:36,320 So that's about where my knowledge ends. 19 00:01:36,460 --> 00:01:40,360 But what I've done is I've tried to get as much research on LDAP 20 00:01:40,360 --> 00:01:45,800 as I can find in RFCs and associated facts and online documentation 21 00:01:46,520 --> 00:01:50,520 so that those of you who haven't heard of LDAP or X500 22 00:01:50,520 --> 00:01:54,220 or any directory access protocol can walk away from this, 23 00:01:54,260 --> 00:01:56,540 at least knowing what it is, knowing what you can do with it, 24 00:01:56,640 --> 00:01:59,100 and hopefully wanting to go back and learn. 25 00:02:00,360 --> 00:02:02,900 I did have some pretty slides and such for you, 26 00:02:02,980 --> 00:02:04,940 but seeing as I can't get internet access, 27 00:02:05,600 --> 00:02:07,680 we're going to go with text and e-terms. 28 00:02:08,000 --> 00:02:10,380 So you'll have to look at my ASCII diagrams. 29 00:02:12,260 --> 00:02:15,920 So with that, feel free to ask me questions anytime. 30 00:02:16,560 --> 00:02:19,380 Just let me get through this spleel I wrote in a paper, 31 00:02:19,990 --> 00:02:21,760 and then you can just hammer me away. 32 00:02:22,140 --> 00:02:25,500 I have no intention of this being long-winded or taking all day or anything. 33 00:02:27,000 --> 00:02:29,360 So as soon as you feel like you're going to be able to do this, 34 00:02:29,360 --> 00:02:30,980 if you feel like you don't have any more questions, just get the hell out of here. 35 00:02:31,300 --> 00:02:33,180 If you have any LDAP 3 questions, 36 00:02:33,780 --> 00:02:36,400 there's someone else in the room that can help you out a little more with that, 37 00:02:36,560 --> 00:02:38,020 but we'll get into that in a little while. 38 00:02:39,860 --> 00:02:41,740 LDAP, Lightweight Directory Access Protocol. 39 00:02:42,160 --> 00:02:46,420 It's an open standard alternative to X500 directory access protocol. 40 00:02:48,320 --> 00:02:52,180 X500 is a directory access protocol first approved as a standard in 1988. 41 00:02:52,800 --> 00:02:56,740 It was maintained by the ITU, International Telecommunications Union, 42 00:02:56,940 --> 00:02:59,340 which released an enhanced version in 1998. 43 00:02:59,360 --> 00:03:06,600 In 1983, X500 uses the OSI network stack instead of TCP, IP, UDP, et cetera. 44 00:03:08,600 --> 00:03:10,140 Not many of us use that anymore. 45 00:03:10,940 --> 00:03:11,700 A directory. 46 00:03:11,940 --> 00:03:13,920 For those of you who don't know what directories are, 47 00:03:14,560 --> 00:03:18,980 the intent of the directory was based on the fact that human users 48 00:03:18,980 --> 00:03:21,480 must be able to look up assorted information about other people. 49 00:03:21,700 --> 00:03:26,020 Email addresses, mailing addresses, telephone numbers, fax numbers, birth dates, 50 00:03:26,700 --> 00:03:28,600 spoken languages, et cetera. 51 00:03:29,360 --> 00:03:32,120 Computers need to be able to look up addresses for various services. 52 00:03:33,660 --> 00:03:38,920 Passwords for users, user IDs, permissions, file system information, 53 00:03:39,460 --> 00:03:42,400 mount points, remote hosts, et cetera. 54 00:03:44,560 --> 00:03:46,060 A lot of the time you think, 55 00:03:46,200 --> 00:03:48,720 why not just use a centralized database for all this information? 56 00:03:49,360 --> 00:03:52,400 The problem comes in because most centralized databases 57 00:03:52,400 --> 00:03:56,480 are big enough and comprehensive enough to cause slowdowns 58 00:03:56,480 --> 00:03:57,940 during peak query times. 59 00:03:59,500 --> 00:04:01,160 And because of their centralization, 60 00:04:01,320 --> 00:04:04,860 they're usually isolated on very inefficient high availability networks 61 00:04:04,860 --> 00:04:09,460 or the simplest thing could just make them unavailable to any other networks. 62 00:04:11,660 --> 00:04:15,360 More on that, the administration of these databases is usually also centralized. 63 00:04:15,740 --> 00:04:18,560 Often this means that there's a long turnaround time 64 00:04:18,560 --> 00:04:21,060 between when you want changes done and when changes are done. 65 00:04:22,060 --> 00:04:23,560 Often called passing the buck. 66 00:04:25,600 --> 00:04:28,900 There's another similar way of, 67 00:04:28,900 --> 00:04:29,240 of, 68 00:04:29,360 --> 00:04:32,580 of distributing this information and it's DNS, Domain Name Service. 69 00:04:35,640 --> 00:04:38,780 DNS is maintained in a distributed fashion like LDAP, 70 00:04:39,380 --> 00:04:43,120 where each DNS server provides name servers for a limited number of domains. 71 00:04:43,780 --> 00:04:46,200 And along with that, servers are often identified, 72 00:04:46,540 --> 00:04:49,100 but backup servers are often identified for domains. 73 00:04:49,500 --> 00:04:52,240 So that in case of failure of a primary server, 74 00:04:52,860 --> 00:04:55,280 hosts won't lose name servers. 75 00:04:56,060 --> 00:04:56,880 Simple enough. 76 00:04:57,420 --> 00:04:59,040 There's some problems with DNS though. 77 00:04:59,360 --> 00:05:01,460 DNS has very limited search capabilities. 78 00:05:02,580 --> 00:05:04,600 And the fact that it provides, 79 00:05:05,340 --> 00:05:07,640 it provides very few data types. 80 00:05:08,400 --> 00:05:11,720 Data types in A records, PTR records, C names, 81 00:05:11,900 --> 00:05:16,160 different types of records you can associate with the actual names you're hosting. 82 00:05:16,800 --> 00:05:21,920 And adding new names involves widespread implementation changes. 83 00:05:22,100 --> 00:05:25,360 You know, I can't just go out tomorrow and create a new record type 84 00:05:25,360 --> 00:05:26,920 and expect everyone else to be able to read it 85 00:05:26,920 --> 00:05:29,340 without everyone else changing what their name server is. 86 00:05:29,360 --> 00:05:37,480 does um solution to this ldap provides decentralized maintenance meaning that each site running ldap 87 00:05:37,480 --> 00:05:41,880 is responsible for its part of the directory so that maintenance and updates can be done 88 00:05:42,560 --> 00:05:48,240 instantaneously and easy you know if i want to make a change to my local company's database i 89 00:05:48,240 --> 00:05:52,520 don't have to go you know i don't have to call i don't know washington to get them to change the 90 00:05:52,520 --> 00:05:58,040 database and then wait for the changes to sync all the way back to me i make it locally they 91 00:05:58,040 --> 00:06:04,560 see it over there as easy as that um it has extremely powerful searching capabilities 92 00:06:04,560 --> 00:06:13,340 not exactly all regular expression style but very similar and you can construct just 93 00:06:13,340 --> 00:06:20,420 extremely complex queries uh to search ldap databases or excuse me not databases directories 94 00:06:20,420 --> 00:06:28,020 is the correct term uh the definition of how it stores data is actually stored inside of 95 00:06:28,020 --> 00:06:33,440 it so if you want to make a change to how it stores data say um you want to add a new type of record uh 96 00:06:35,660 --> 00:06:41,700 favorite topping on pizza you don't have to go out and change the actual implementation you just add 97 00:06:41,700 --> 00:06:46,480 it to your directory and people remotely can't see it unless they add it to their directory 98 00:06:46,480 --> 00:06:50,440 and it doesn't affect them it doesn't affect you because they can't see it it's just something 99 00:06:50,440 --> 00:06:54,120 you've added to your database they can sync it up to theirs you can sync it up to theirs whichever 100 00:06:56,560 --> 00:06:57,720 as its standard 101 00:06:58,020 --> 00:07:03,700 based it's very very very easy to build applications which use directory service 102 00:07:04,480 --> 00:07:11,900 email servers automated resource locators other special purpose tools regardless of where they are 103 00:07:11,900 --> 00:07:15,340 what they're running on or what what they're running for an ldap implementation 104 00:07:17,220 --> 00:07:23,160 also because of standard base there are few incompatibilities between different 105 00:07:23,160 --> 00:07:27,740 different implementations once you start using it you'll see that's a little wrong but 106 00:07:28,600 --> 00:07:32,820 because it's it's based on a standard they're supposed to be all the same but 107 00:07:33,300 --> 00:07:37,440 you know one has an api that allows you to do this a different one has an api that allows you 108 00:07:37,440 --> 00:07:43,300 to do that so it gets confusing when you start running software for it um and it can be accessed 109 00:07:43,300 --> 00:07:49,880 by most information in one implementation can be accessed from another implementation without much 110 00:07:49,880 --> 00:07:56,260 headache uh most of the time problems with ldap oh start over excuse me 111 00:07:59,000 --> 00:08:05,880 uh searches searches in ldap can span more than one ldap server meaning that they're gonna have to 112 00:08:05,880 --> 00:08:11,540 cross network boundaries and a lot of implementations cache all this information that 113 00:08:11,540 --> 00:08:17,740 that it goes out and requests from a remote server and this usually slows down the response time in 114 00:08:17,740 --> 00:08:25,640 queries it's not as true anymore with people getting larger and larger servers and you know 115 00:08:25,640 --> 00:08:27,440 more and more bandwidth but um 116 00:08:28,020 --> 00:08:31,800 the that was one of the slowdowns and why you haven't seen ldap deployed everywhere yet 117 00:08:34,740 --> 00:08:40,640 um security configurations are another uh problem with ldap a lot of the security configurations 118 00:08:40,640 --> 00:08:48,180 allow a limited number of query returns when you uh query ldap uh you may seek you know something 119 00:08:48,180 --> 00:08:53,220 like everyone named bob and you may get a hundred results uh but the security restrictions on the 120 00:08:53,220 --> 00:08:57,680 server may only restrict you to seeing 10 results uh these are all stuff that can be 121 00:08:58,020 --> 00:09:03,500 leaked but it requires a lot of work on the user end if it's not set up correctly to begin with 122 00:09:05,960 --> 00:09:09,240 some examples of directory service in case you still haven't caught on 123 00:09:09,680 --> 00:09:17,080 uh phone companies 401 or directory service uh excuse me directory assistance um it's provided 124 00:09:17,080 --> 00:09:23,580 by all the baby bells or all the ilex and all the clex um they keep an electronic list of all the 125 00:09:24,040 --> 00:09:27,860 then you know everyone has a phone line their names their addresses their phone number 126 00:09:28,500 --> 00:09:33,160 um you call up give them the name give them the address to give you the phone number 127 00:09:33,780 --> 00:09:41,780 um it's also available on the phone book the problem with that is if uh if you you need the 128 00:09:41,780 --> 00:09:48,740 city they live in excuse me it's hot as hell in here uh and their name now if you return more than 129 00:09:48,740 --> 00:09:55,020 one name say two names there's really no other way to limit down who's who it's a limit of the 130 00:09:55,640 --> 00:09:57,560 an example of another directory service 131 00:09:58,560 --> 00:10:04,280 um in addition the information they may have in there could be from two weeks old in the electronic 132 00:10:04,280 --> 00:10:11,340 version to up to a year old in the phone book so not much they could do about a phone book that's 133 00:10:11,340 --> 00:10:16,160 sitting in your house other than sending you another phone book pretty inefficient um 134 00:10:19,840 --> 00:10:23,160 another problem with that is if i want to look up the number of someone in 135 00:10:23,160 --> 00:10:27,720 atlanta for example i have to call a directory service in atlanta i can't call my 136 00:10:28,020 --> 00:10:33,180 directory service so another limitation of this directory service or excuse me directory assistance 137 00:10:37,280 --> 00:10:39,040 how directories are broken up 138 00:10:40,900 --> 00:10:45,480 entries are primarily constructed holding information in a directory an entry would be 139 00:10:46,160 --> 00:10:48,760 a entry for a user for example or a person 140 00:10:49,680 --> 00:10:56,060 each entry contains information about an object an object would be telephone number favorite topping 141 00:10:56,060 --> 00:10:57,320 on pizza uh 142 00:10:58,020 --> 00:11:03,360 spoken language mailing address email address those are examples of objects in ldap 143 00:11:03,360 --> 00:11:11,300 each of these has a collection of attributes for them or syntax for attributes for them 144 00:11:12,070 --> 00:11:15,000 for example telephone number can only contain numerics 145 00:11:15,830 --> 00:11:20,500 your surname can only contain contain alphanumeric characters 146 00:11:23,440 --> 00:11:27,440 there's some other ones that you know photo data time code 147 00:11:28,020 --> 00:11:31,360 different types of syntax you can stick on attributes boring stuff 148 00:11:32,960 --> 00:11:39,380 security in ldap ldap by default is extremely lax when it comes to security it's 149 00:11:39,800 --> 00:11:44,420 not much more secure than any default installation of your favorite os pick 150 00:11:44,420 --> 00:11:51,340 whatever it is excluding windows just never secure securing it requires much administrative 151 00:11:52,060 --> 00:11:56,580 intervention so it's not something you could plug and play and hope no one owns it 152 00:11:58,280 --> 00:12:03,820 access control lists are built into ldap you just have to have to know how to use them and you have 153 00:12:03,820 --> 00:12:13,020 to use them each attribute or each object of a given entry entry being a person for example 154 00:12:13,020 --> 00:12:18,860 can be permitted detect compare read modify permissions based on the reader's membership 155 00:12:18,860 --> 00:12:24,720 in various groups for example if someone wanted to look me up and get my phone number 156 00:12:25,240 --> 00:12:27,940 my ldap server can restrict them from seeing my phone number 157 00:12:28,020 --> 00:12:32,940 they could see that i exist they could compare my password against another password 158 00:12:33,410 --> 00:12:38,620 if i allow them to do that they could get my address but i could restrict them from seeing 159 00:12:38,620 --> 00:12:42,600 my phone number or it could be the other way around i could let them only see my phone number 160 00:12:42,600 --> 00:12:47,560 and see that i exist um so that's what they what's that's what i mean when i say compare 161 00:12:48,060 --> 00:12:51,040 read and modify compare would be just compare two entries 162 00:12:51,040 --> 00:12:57,360 uh does he you know is greg in the ldap database yes greg's in the ldap database for example 163 00:12:58,020 --> 00:13:05,460 um you can also specify information given to the public so that anyone can read it the same way 164 00:13:05,460 --> 00:13:11,920 um you know if i just want them to have my phone number a pretty cool security feature of ldap is 165 00:13:11,920 --> 00:13:18,140 when if you're using it for user authentication is the user password object which stores user 166 00:13:18,140 --> 00:13:27,880 passwords of course uh syntaxfist allows you to store it in plaintext unit script md5 sha and cd 167 00:13:28,020 --> 00:13:34,680 md5 or sha which is pretty cool considering um say i'm running a free bsd machine and i um 168 00:13:35,260 --> 00:13:39,260 i want to authenticate my linux users off of it and i'm running ldap for authentication 169 00:13:39,820 --> 00:13:46,480 i can use any of these schemes sha md5 unix crypt and it doesn't matter what platform i'm using it's 170 00:13:46,480 --> 00:13:52,660 all based in ldap so i can go from sys5 to bsd without having to worry about going between md5 171 00:13:52,660 --> 00:13:57,440 and crypt um some common uses 172 00:13:58,440 --> 00:14:06,920 ldap email servers not all mtas but as far as i know most mtas have either patches or come 173 00:14:06,920 --> 00:14:12,680 default with support for ldap that allows uh control of addressing aliasing forwarding 174 00:14:13,260 --> 00:14:20,900 uh and another example of this is qml ldap um uses user it uses ldap to look up user information 175 00:14:21,660 --> 00:14:27,500 and then uses the return information to process messages um let's say it's having to add you know 176 00:14:28,020 --> 00:14:31,700 users to a mail server just to get them to receive mail you stick it in the ldap database 177 00:14:32,520 --> 00:14:36,220 and you're set you don't have to add anyone to the machine kind of like virtual users 178 00:14:36,220 --> 00:14:40,380 with any other mta except you're doing yourself a favor by putting them in ldap 179 00:14:41,800 --> 00:14:45,640 um the patch for qml that i was referring to earlier will also do authentication 180 00:14:45,640 --> 00:14:49,420 for you know if you want to pop in and get your mail or i'm at the end and get your mail 181 00:14:51,800 --> 00:14:58,000 um you can use the authentication scheme in ldap on a variety of platforms uh use the 182 00:14:58,020 --> 00:14:59,600 using LDAP as the transport, 183 00:14:59,880 --> 00:15:01,980 but there's also PAM LDAP 184 00:15:01,980 --> 00:15:02,260 modules. 185 00:15:04,640 --> 00:15:05,860 Solaris comes with PAM support. 186 00:15:06,060 --> 00:15:07,980 If you wanted your Solaris machine 187 00:15:07,980 --> 00:15:09,940 to start authenticating off an LDAP 188 00:15:09,940 --> 00:15:11,300 server, you would just stick a 189 00:15:11,780 --> 00:15:13,460 PAM LDAP module on there 190 00:15:13,460 --> 00:15:15,660 in your set, or your Red Hat machine, 191 00:15:15,800 --> 00:15:17,540 or whatever you have PAM compiled on. 192 00:15:21,080 --> 00:15:21,800 Employee listing 193 00:15:21,800 --> 00:15:23,920 and automation is another use for 194 00:15:23,920 --> 00:15:26,000 it. Very similar 195 00:15:26,000 --> 00:15:27,280 to what Netscape uses. 196 00:15:27,980 --> 00:15:28,700 Netscape's, well, 197 00:15:29,280 --> 00:15:31,380 last time I read, Netscape's 198 00:15:31,380 --> 00:15:33,580 corporate network was based on LDAP. 199 00:15:33,660 --> 00:15:34,740 It basically meant 200 00:15:35,380 --> 00:15:37,580 HR hires a person, they add them 201 00:15:37,580 --> 00:15:39,520 to the database, and instantly they're on 202 00:15:39,520 --> 00:15:41,180 the contact list, on the phone list, 203 00:15:41,880 --> 00:15:42,860 in the mail server. 204 00:15:43,320 --> 00:15:45,520 They have an account to dial up and do whatever. 205 00:15:46,500 --> 00:15:47,540 All just by adding 206 00:15:47,540 --> 00:15:48,000 one entry. 207 00:15:48,980 --> 00:15:51,140 That's where the centralization comes in. 208 00:15:52,480 --> 00:15:53,540 But, it's not 209 00:15:53,540 --> 00:15:55,320 limited by centralization. I'll get to that. 210 00:15:58,700 --> 00:15:59,840 LDAP can be used 211 00:15:59,840 --> 00:16:01,140 as an NIS replacement, 212 00:16:01,480 --> 00:16:02,820 which I'm very happy about. 213 00:16:03,820 --> 00:16:05,240 There's some plug-in replacements 214 00:16:05,240 --> 00:16:07,520 which are written by the guys at 215 00:16:07,520 --> 00:16:09,540 paddle.com, P-A-D-L dot com. 216 00:16:10,420 --> 00:16:11,700 One of their products is 217 00:16:11,700 --> 00:16:13,020 called YPLDAPD. 218 00:16:13,640 --> 00:16:15,360 And what it basically does is, 219 00:16:15,520 --> 00:16:17,600 if you say you have an existing NIS server 220 00:16:17,600 --> 00:16:19,740 and you want to replace it with an LDAP server, 221 00:16:20,000 --> 00:16:21,900 but you have machines on the network 222 00:16:21,900 --> 00:16:22,900 that don't support LDAP, 223 00:16:23,580 --> 00:16:25,660 you can stick YPLDAPD on there 224 00:16:25,660 --> 00:16:27,260 to answer NIS's 225 00:16:27,280 --> 00:16:29,160 queries from the LDAP database. 226 00:16:30,960 --> 00:16:32,040 That way you can start 227 00:16:32,040 --> 00:16:33,440 sticking access lists on there 228 00:16:33,440 --> 00:16:35,420 and use the LDAP database for other 229 00:16:35,920 --> 00:16:37,160 things on your network. 230 00:16:38,840 --> 00:16:40,260 Pretty easy to implement, too. 231 00:16:40,300 --> 00:16:41,040 I've done it a couple times. 232 00:16:41,880 --> 00:16:43,660 They make another software product. 233 00:16:44,160 --> 00:16:45,780 These are all free products, by the way. 234 00:16:46,080 --> 00:16:47,660 I don't recall what the name is. 235 00:16:48,040 --> 00:16:49,600 It's available from the same people. 236 00:16:50,020 --> 00:16:51,980 And what it does is, it acts as a 237 00:16:52,900 --> 00:16:53,380 object 238 00:16:53,860 --> 00:16:55,080 that you stick in. 239 00:16:55,600 --> 00:16:57,120 It's in Solaris. It's lib. 240 00:16:57,280 --> 00:16:59,020 It's security. User lib security. 241 00:16:59,980 --> 00:17:00,920 It's a YP 242 00:17:01,920 --> 00:17:03,360 object that you stick in there 243 00:17:04,120 --> 00:17:05,500 that, instead of going to 244 00:17:05,500 --> 00:17:07,400 an NIS server, it will just automatically 245 00:17:07,400 --> 00:17:08,520 go to an LDAP server. 246 00:17:08,760 --> 00:17:10,380 Save you tons of trouble. 247 00:17:12,440 --> 00:17:13,440 And with an infrastructure 248 00:17:13,440 --> 00:17:15,140 like this, it's pretty easy to roll it out 249 00:17:15,140 --> 00:17:17,140 network-wide without anything 250 00:17:17,680 --> 00:17:19,480 hiccuping or anyone dying 251 00:17:19,980 --> 00:17:21,200 coming in the office with a gun 252 00:17:21,200 --> 00:17:21,880 and killing you or anything. 253 00:17:23,060 --> 00:17:24,320 And it allows for replication 254 00:17:25,240 --> 00:17:26,940 and authentication across your network. 255 00:17:28,260 --> 00:17:29,600 I'm going to throw out a few examples 256 00:17:29,600 --> 00:17:31,180 of some software and some products 257 00:17:31,180 --> 00:17:31,940 that use LDAP. 258 00:17:34,020 --> 00:17:35,900 Netscape's got a really nice LDAP server. 259 00:17:36,140 --> 00:17:37,720 It's called iPlanet 260 00:17:37,720 --> 00:17:38,700 directory server now. 261 00:17:39,680 --> 00:17:40,520 There's some... 262 00:17:41,620 --> 00:17:43,600 Most Cisco hardware nowadays 263 00:17:43,600 --> 00:17:44,540 supports LDAP. 264 00:17:46,020 --> 00:17:47,460 Bay Network sells some stuff 265 00:17:47,460 --> 00:17:48,180 that supports LDAP. 266 00:17:50,500 --> 00:17:51,540 It's rolling out 267 00:17:51,540 --> 00:17:52,680 at a very fast rate. 268 00:17:54,060 --> 00:17:55,380 That was the paper I've written. 269 00:17:55,540 --> 00:17:56,980 I hope it's answered some of the 270 00:17:56,980 --> 00:17:57,620 questions you have. 271 00:17:57,920 --> 00:18:00,580 I also have some diagrams I'll show you. 272 00:18:02,620 --> 00:18:03,840 Maybe this will help you out 273 00:18:03,840 --> 00:18:04,720 if you don't understand yet. 274 00:18:04,960 --> 00:18:06,200 But if you guys have any questions, 275 00:18:06,260 --> 00:18:07,700 just start firing away. 276 00:18:08,720 --> 00:18:09,260 Hit me. 277 00:18:09,700 --> 00:18:11,760 What's a good open source LDAP server? 278 00:18:12,020 --> 00:18:12,940 Open LDAP. 279 00:18:14,360 --> 00:18:15,460 That's all I've used. 280 00:18:15,700 --> 00:18:16,720 I swear by it. 281 00:18:16,960 --> 00:18:17,700 It's free. 282 00:18:19,580 --> 00:18:21,080 Be careful with the documentation. 283 00:18:21,700 --> 00:18:21,960 It's... 284 00:18:22,480 --> 00:18:23,980 You've got to look through their fax system. 285 00:18:24,100 --> 00:18:25,600 They have one of those automated fax systems. 286 00:18:25,820 --> 00:18:26,900 It gets a little confusing. 287 00:18:26,900 --> 00:18:27,360 It's confusing at times. 288 00:18:27,700 --> 00:18:28,780 But all in all, 289 00:18:28,900 --> 00:18:30,340 it's a pretty hardcore server. 290 00:18:31,580 --> 00:18:32,760 I've used it on 291 00:18:33,760 --> 00:18:34,960 a variety of platforms. 292 00:18:35,160 --> 00:18:36,480 Linux, FreeBSD, Solaris. 293 00:18:38,000 --> 00:18:38,960 So that's my favorite. 294 00:18:39,040 --> 00:18:40,400 They're at openldap.org. 295 00:18:42,740 --> 00:18:44,620 How do the directory servers 296 00:18:44,620 --> 00:18:45,700 communicate with each other? 297 00:18:45,920 --> 00:18:47,500 How do they communicate with each other? 298 00:18:48,060 --> 00:18:50,620 If you're spanning more than one directory server? 299 00:18:51,200 --> 00:18:52,060 I don't remember. 300 00:18:54,120 --> 00:18:54,920 Yeah, Lito. 301 00:18:55,900 --> 00:18:56,820 He wants to know, 302 00:18:56,820 --> 00:18:58,940 how servers, 303 00:18:59,240 --> 00:19:00,160 if they're spanning a network, 304 00:19:00,280 --> 00:19:01,460 authenticate against each other. 305 00:19:01,660 --> 00:19:03,440 So it doesn't think that it's just a user 306 00:19:03,440 --> 00:19:04,560 going out and trying to pull information. 307 00:19:05,520 --> 00:19:06,960 It's built into the protocol 308 00:19:06,960 --> 00:19:08,300 to replicate against servers. 309 00:19:08,560 --> 00:19:11,160 And in the comp files on each slave server, 310 00:19:11,320 --> 00:19:13,980 you have the root or manager account 311 00:19:13,980 --> 00:19:16,120 that can look into the whole server. 312 00:19:16,420 --> 00:19:17,860 And you can have that in your password 313 00:19:17,860 --> 00:19:18,500 that you want. 314 00:19:18,880 --> 00:19:22,060 S-H-A-A-N-D-B-I-Z-W-E-E-S 315 00:19:22,060 --> 00:19:23,700 authenticate as a regular user 316 00:19:23,700 --> 00:19:24,560 to the slave server. 317 00:19:25,980 --> 00:19:26,800 Sounds about right. 318 00:19:28,320 --> 00:19:29,500 Lito knows a little bit more 319 00:19:29,500 --> 00:19:31,480 about LDAP3 than I do. 320 00:19:35,080 --> 00:19:36,180 There you go. 321 00:19:38,280 --> 00:19:39,240 Safe pages? 322 00:19:41,960 --> 00:19:44,520 Is it based off UMichigan? 323 00:19:44,760 --> 00:19:45,240 Yes. 324 00:19:45,460 --> 00:19:45,740 Okay. 325 00:20:02,500 --> 00:20:03,540 That reminds me. 326 00:20:03,580 --> 00:20:04,300 Another open one. 327 00:20:04,400 --> 00:20:05,280 University of Michigan. 328 00:20:07,320 --> 00:20:08,920 Let me give you the URL for that 329 00:20:08,920 --> 00:20:09,940 because it's kind of convoluted. 330 00:20:13,340 --> 00:20:13,740 Yay. 331 00:20:14,340 --> 00:20:14,740 Nope. 332 00:20:18,920 --> 00:20:19,840 I'll pull that up for you. 333 00:20:19,900 --> 00:20:20,380 Any other questions? 334 00:20:21,460 --> 00:20:21,980 Go ahead. 335 00:20:24,860 --> 00:20:26,540 Can you run regular NIST services? 336 00:20:26,820 --> 00:20:29,240 And LDAP3 is on the same machine 337 00:20:29,240 --> 00:20:30,120 in the gravity library? 338 00:20:31,700 --> 00:20:32,560 I wouldn't. 339 00:20:32,560 --> 00:20:34,400 Well, if I were rolling it out, 340 00:20:34,420 --> 00:20:35,660 I would have two separate machines 341 00:20:35,660 --> 00:20:39,960 simply to minimize the confusion involved. 342 00:20:41,000 --> 00:20:41,740 You could. 343 00:20:43,480 --> 00:20:44,780 It's not going to hurt anything. 344 00:20:44,900 --> 00:20:46,340 It's just a matter of maintenance 345 00:20:46,340 --> 00:20:47,380 versus confusion. 346 00:20:50,160 --> 00:20:53,720 The YP or NIS LDAP implementations 347 00:20:53,720 --> 00:20:55,540 are pretty easy to set up. 348 00:20:56,820 --> 00:20:57,680 Once they're set up, 349 00:20:57,680 --> 00:20:59,480 it's all a matter of maintaining the LDAP server. 350 00:21:02,180 --> 00:21:03,040 Try not... 351 00:21:03,800 --> 00:21:04,340 What's up? 352 00:21:04,920 --> 00:21:05,940 I don't think so. 353 00:21:06,000 --> 00:21:07,240 I'm talking about migration rules. 354 00:21:07,480 --> 00:21:08,360 I think it will take 355 00:21:09,400 --> 00:21:11,100 XT password, XT shadow, 356 00:21:11,220 --> 00:21:12,740 group, all your down points, 357 00:21:12,840 --> 00:21:15,260 and you can modify it 358 00:21:15,260 --> 00:21:16,440 to your other directory 359 00:21:16,440 --> 00:21:18,380 or add it with LDAP, 360 00:21:18,380 --> 00:21:19,440 add it with LDAP. 361 00:21:19,600 --> 00:21:20,300 So, let's say, 362 00:21:20,760 --> 00:21:21,500 you want to... 363 00:21:21,500 --> 00:21:23,500 And then I have to read that 364 00:21:23,500 --> 00:21:24,480 as a flat file 365 00:21:24,480 --> 00:21:25,960 and create an LDAP. 366 00:21:26,040 --> 00:21:26,800 There we go. 367 00:21:26,800 --> 00:21:28,120 LDAP, LDAP, LDAP, LDAP, 368 00:21:28,120 --> 00:21:29,940 or they use the LDAP app 369 00:21:29,940 --> 00:21:31,760 at the bottom of certain runs. 370 00:21:32,560 --> 00:21:33,540 And then you can... 371 00:21:33,540 --> 00:21:35,480 When I was on the phone, 372 00:21:36,480 --> 00:21:38,140 even though they have a one-hour, 373 00:21:38,280 --> 00:21:39,580 half-an-hour update 374 00:21:39,580 --> 00:21:40,580 with your LDAP server, 375 00:21:41,100 --> 00:21:41,540 NIS, 376 00:21:41,540 --> 00:21:43,040 because I have all the machines 377 00:21:43,040 --> 00:21:44,900 that are located in the LDAP NIS, 378 00:21:44,980 --> 00:21:46,140 you can go to the panel. 379 00:21:46,700 --> 00:21:47,140 Yeah. 380 00:21:47,540 --> 00:21:47,980 PA... 381 00:21:47,980 --> 00:21:48,660 Oh, excuse me. 382 00:21:48,680 --> 00:21:49,180 I spelled that wrong. 383 00:21:50,800 --> 00:21:51,720 Dyslexia sets in. 384 00:21:53,100 --> 00:21:53,540 Yeah. 385 00:21:55,980 --> 00:21:56,780 Any other questions? 386 00:21:57,480 --> 00:21:58,480 Go, dude. 387 00:22:17,220 --> 00:22:18,940 When you use LDAP... 388 00:22:18,940 --> 00:22:20,340 Well, you did out-add 389 00:22:20,340 --> 00:22:23,580 the root DN first. 390 00:22:26,800 --> 00:22:27,440 The very first entry 391 00:22:27,440 --> 00:22:28,180 in the DAP role 392 00:22:28,180 --> 00:22:29,220 in the creation of the stuff. 393 00:22:29,460 --> 00:22:29,880 Mm-hmm. 394 00:22:29,980 --> 00:22:31,020 Is that where it's in the file? 395 00:22:31,920 --> 00:22:32,300 The... 396 00:22:32,300 --> 00:22:33,420 When you're adding it 397 00:22:33,420 --> 00:22:33,960 the first time 398 00:22:33,960 --> 00:22:34,420 or where it is 399 00:22:34,420 --> 00:22:35,660 in the slapd config? 400 00:22:36,060 --> 00:22:37,320 I'll mention slapd.com. 401 00:22:37,500 --> 00:22:37,800 Okay. 402 00:22:38,280 --> 00:22:38,880 I'll mention that 403 00:22:38,880 --> 00:22:39,580 the very first time 404 00:22:39,580 --> 00:22:40,060 that I did it 405 00:22:40,060 --> 00:22:41,060 in slapd.com. 406 00:22:41,440 --> 00:22:42,460 And then I tried 407 00:22:42,460 --> 00:22:43,340 to run the LF add 408 00:22:43,340 --> 00:22:44,620 to add a user 409 00:22:45,240 --> 00:22:46,180 and it didn't work. 410 00:22:46,440 --> 00:22:46,920 Mm-hmm. 411 00:22:47,200 --> 00:22:48,360 You have to add... 412 00:22:48,360 --> 00:22:49,200 You actually have to add 413 00:22:49,200 --> 00:22:50,220 the root DN first. 414 00:22:50,620 --> 00:22:50,960 Oh. 415 00:22:52,120 --> 00:22:53,160 It's not documented 416 00:22:53,160 --> 00:22:54,400 and, you know, 417 00:22:54,400 --> 00:22:55,220 it may not be something 418 00:22:55,220 --> 00:22:55,920 you always have to do, 419 00:22:55,980 --> 00:22:56,780 but I've always had to do it. 420 00:22:56,780 --> 00:22:57,440 You have to add 421 00:22:57,440 --> 00:22:58,020 the root DN. 422 00:22:59,300 --> 00:23:00,820 You do the same thing 423 00:23:00,820 --> 00:23:01,640 when you're adding a user. 424 00:23:01,900 --> 00:23:02,640 You just add 425 00:23:02,640 --> 00:23:03,620 the actual... 426 00:23:03,620 --> 00:23:04,600 So, like, 427 00:23:04,600 --> 00:23:05,300 if you're... 428 00:23:06,200 --> 00:23:07,080 If your organization 429 00:23:07,080 --> 00:23:07,920 equals DEF CON, 430 00:23:08,120 --> 00:23:08,600 you know, 431 00:23:09,660 --> 00:23:10,780 and your country 432 00:23:11,400 --> 00:23:11,840 equals US, 433 00:23:12,060 --> 00:23:13,060 you add that first 434 00:23:13,060 --> 00:23:14,620 and then add users 435 00:23:14,620 --> 00:23:15,200 underneath that. 436 00:23:15,460 --> 00:23:15,680 Okay. 437 00:23:15,740 --> 00:23:16,500 You don't use it. 438 00:23:16,680 --> 00:23:17,400 It'll give you 439 00:23:17,400 --> 00:23:18,080 like, you know, 440 00:23:18,160 --> 00:23:18,560 the means. 441 00:23:19,460 --> 00:23:20,800 Oh, you need to use that 442 00:23:20,800 --> 00:23:21,400 for the authentication. 443 00:23:21,860 --> 00:23:23,140 I can't even do that. 444 00:23:23,380 --> 00:23:23,800 Hmm. 445 00:23:24,400 --> 00:23:25,220 Catch me later. 446 00:23:25,280 --> 00:23:25,980 We'll take a look 447 00:23:25,980 --> 00:23:26,460 at it on here. 448 00:23:28,500 --> 00:23:29,140 Do you know 449 00:23:29,140 --> 00:23:29,640 when you did this 450 00:23:29,640 --> 00:23:30,260 for LDAP 451 00:23:30,260 --> 00:23:30,820 or organizing 452 00:23:30,820 --> 00:23:31,600 your data 453 00:23:31,600 --> 00:23:33,020 for LDAP? 454 00:23:33,180 --> 00:23:34,060 In the LDAP... 455 00:23:34,060 --> 00:23:34,980 For LDAP 456 00:23:34,980 --> 00:23:35,880 or prior to LDAP? 457 00:23:36,480 --> 00:23:36,840 Like, 458 00:23:36,920 --> 00:23:37,280 where are you 459 00:23:37,280 --> 00:23:37,940 going to show people 460 00:23:37,940 --> 00:23:38,720 where you're going to 461 00:23:38,720 --> 00:23:38,780 do this? 462 00:23:40,040 --> 00:23:40,760 The RFCs. 463 00:23:40,840 --> 00:23:41,600 Let me show you 464 00:23:41,600 --> 00:23:42,320 the RFCs here. 465 00:23:42,380 --> 00:23:43,200 There's a couple of them. 466 00:23:51,460 --> 00:23:52,500 These are the RFCs 467 00:23:52,500 --> 00:23:52,760 you want. 468 00:23:52,860 --> 00:23:53,080 Oops. 469 00:23:54,060 --> 00:23:54,640 Right there. 470 00:23:55,260 --> 00:23:55,620 Right there. 471 00:23:57,660 --> 00:23:58,640 A lot of the earlier 472 00:23:58,640 --> 00:23:59,260 ones in here 473 00:23:59,260 --> 00:24:01,140 are X500 RFCs. 474 00:24:01,280 --> 00:24:02,060 The later ones 475 00:24:02,060 --> 00:24:03,900 are LDAP3 RFCs. 476 00:24:05,100 --> 00:24:06,340 But everything in between 477 00:24:06,900 --> 00:24:08,280 will help you organize it. 478 00:24:08,360 --> 00:24:08,660 You'll see how 479 00:24:08,660 --> 00:24:09,500 other people have done it. 480 00:24:09,920 --> 00:24:10,860 Another good example 481 00:24:10,860 --> 00:24:11,820 is if you look at 482 00:24:11,820 --> 00:24:12,860 some of the facts 483 00:24:12,860 --> 00:24:13,820 on these pages here 484 00:24:13,820 --> 00:24:15,380 and see how 485 00:24:15,380 --> 00:24:16,120 they've laid it out. 486 00:24:16,760 --> 00:24:18,060 It's a good indication 487 00:24:18,060 --> 00:24:18,880 on how to do it. 488 00:24:19,060 --> 00:24:20,080 It's pretty straightforward. 489 00:24:21,140 --> 00:24:22,140 When you add users, 490 00:24:22,300 --> 00:24:22,480 you know, 491 00:24:22,600 --> 00:24:23,640 you add them as people. 492 00:24:23,720 --> 00:24:24,320 When you add computers, 493 00:24:24,540 --> 00:24:25,160 you add them as computers. 494 00:24:25,920 --> 00:24:26,720 It's pretty tough. 495 00:24:26,780 --> 00:24:28,720 to confuse yourself 496 00:24:28,720 --> 00:24:29,440 when you do it. 497 00:24:30,220 --> 00:24:31,180 Except with the number 498 00:24:31,180 --> 00:24:32,040 of options you have, 499 00:24:32,100 --> 00:24:32,780 the number of objects 500 00:24:32,780 --> 00:24:33,180 you have. 501 00:24:34,340 --> 00:24:35,080 Think of anything 502 00:24:35,780 --> 00:24:36,440 you've used. 503 00:24:36,540 --> 00:24:36,760 Lito? 504 00:24:43,160 --> 00:24:43,700 That's probably 505 00:24:43,700 --> 00:24:44,180 a good start. 506 00:24:48,020 --> 00:24:48,840 There was one 507 00:24:48,840 --> 00:24:49,860 I was using for a while. 508 00:24:52,860 --> 00:24:53,700 Net LDAP. 509 00:24:54,640 --> 00:24:55,440 There's another one. 510 00:24:55,520 --> 00:24:56,760 It's Simple LDAP. 511 00:24:56,780 --> 00:24:57,740 Administration Tool. 512 00:24:58,040 --> 00:25:01,540 It's S-L-A-T-K. 513 00:25:07,040 --> 00:25:08,420 Check out FreshMeet also. 514 00:25:08,760 --> 00:25:10,220 Do a search for LDAP. 515 00:25:10,280 --> 00:25:11,360 There's quite a few front ends. 516 00:25:12,600 --> 00:25:13,540 That's another problem, 517 00:25:13,600 --> 00:25:13,900 actually, 518 00:25:13,960 --> 00:25:15,080 with some of the open 519 00:25:15,680 --> 00:25:17,020 or free LDAP servers 520 00:25:17,020 --> 00:25:18,220 is that they don't come 521 00:25:18,220 --> 00:25:18,800 with a front end. 522 00:25:19,260 --> 00:25:20,300 So you're going to have 523 00:25:20,300 --> 00:25:21,120 to do it all by hand 524 00:25:21,120 --> 00:25:21,900 unless you go out 525 00:25:21,900 --> 00:25:22,860 and either write a front end 526 00:25:22,860 --> 00:25:24,780 or download a front end. 527 00:25:26,280 --> 00:25:26,660 Yeah. 528 00:25:28,980 --> 00:25:30,920 That's the advantage 529 00:25:30,920 --> 00:25:31,940 of the commercial servers 530 00:25:31,940 --> 00:25:32,980 versus the free servers. 531 00:25:33,100 --> 00:25:34,180 You have a front end 532 00:25:34,180 --> 00:25:35,040 to do everything in. 533 00:25:40,560 --> 00:25:41,780 I haven't implemented 534 00:25:42,360 --> 00:25:43,040 that before. 535 00:25:49,100 --> 00:25:50,060 It's SlurpD. 536 00:25:50,780 --> 00:25:52,000 It uses SlurpD. 537 00:25:52,080 --> 00:25:52,700 I'm not sure what port 538 00:25:52,700 --> 00:25:53,260 it runs on. 539 00:25:54,920 --> 00:25:56,100 But you run a replication 540 00:25:56,100 --> 00:25:56,600 server. 541 00:25:56,780 --> 00:25:57,220 Well, not actually, 542 00:25:57,280 --> 00:25:58,180 not if you're replicating. 543 00:25:58,260 --> 00:25:58,780 If you're just running 544 00:25:58,780 --> 00:26:00,580 flat LDAP between servers, 545 00:26:00,660 --> 00:26:01,360 it's still LDAP. 546 00:26:01,820 --> 00:26:03,100 It just goes out as a user. 547 00:26:03,440 --> 00:26:04,240 That's what we were discussing 548 00:26:04,240 --> 00:26:04,480 before, 549 00:26:04,540 --> 00:26:05,260 how it authenticates. 550 00:26:06,980 --> 00:26:07,340 Yeah. 551 00:26:07,420 --> 00:26:09,140 It's X500, 552 00:26:09,320 --> 00:26:10,240 which was the predecessor 553 00:26:10,240 --> 00:26:11,280 to LDAP ran on 554 00:26:11,280 --> 00:26:12,360 the OSI network stack. 555 00:26:13,200 --> 00:26:14,580 LDAP runs on TCP IP. 556 00:26:15,520 --> 00:26:16,440 Let me see what port 557 00:26:16,440 --> 00:26:17,020 it is for here. 558 00:26:20,200 --> 00:26:20,560 Yeah. 559 00:26:21,140 --> 00:26:22,300 That's SSL LDAP. 560 00:26:22,420 --> 00:26:22,920 I don't recall 561 00:26:22,920 --> 00:26:23,760 which port it runs on. 562 00:26:24,500 --> 00:26:24,860 389? 563 00:26:25,240 --> 00:26:25,740 There you go. 564 00:26:25,800 --> 00:26:26,160 389. 565 00:26:26,780 --> 00:26:27,360 You've all met 566 00:26:27,360 --> 00:26:28,100 the rules of LDAP. 567 00:26:28,540 --> 00:26:29,040 Yeah. 568 00:26:30,800 --> 00:26:32,280 What's the most common 569 00:26:32,280 --> 00:26:33,180 version of LDAP 570 00:26:33,180 --> 00:26:33,540 that's used 571 00:26:33,540 --> 00:26:34,540 in most operations? 572 00:26:36,400 --> 00:26:37,300 Is it much 573 00:26:37,300 --> 00:26:38,440 LDAP 3 out there? 574 00:26:39,920 --> 00:26:41,020 That's the LDAP 3 575 00:26:41,020 --> 00:26:41,820 master over there. 576 00:26:43,220 --> 00:26:45,760 LDAP 3 is 577 00:26:45,760 --> 00:26:46,080 the most common 578 00:26:46,080 --> 00:26:46,280 version. 579 00:26:46,400 --> 00:26:46,660 Yeah. 580 00:26:46,920 --> 00:26:47,640 Most of the, 581 00:26:47,740 --> 00:26:48,380 well, you've got, 582 00:26:48,460 --> 00:26:48,680 okay, 583 00:26:48,740 --> 00:26:49,600 there's a couple 584 00:26:49,600 --> 00:26:50,540 of examples of LDAP 585 00:26:50,540 --> 00:26:52,380 ripoffs or similarities. 586 00:26:53,000 --> 00:26:53,980 Notes uses, 587 00:26:54,120 --> 00:26:54,840 I think, 588 00:26:54,840 --> 00:26:55,220 X400, 589 00:26:55,440 --> 00:26:55,780 X500. 590 00:26:56,840 --> 00:26:57,880 For the back end. 591 00:26:58,520 --> 00:26:59,340 Active Directory 592 00:26:59,340 --> 00:27:00,180 from Microsoft, 593 00:27:00,980 --> 00:27:02,040 similar to LDAP. 594 00:27:02,280 --> 00:27:03,640 NDS from Novell, 595 00:27:03,680 --> 00:27:04,620 similar to LDAP. 596 00:27:06,500 --> 00:27:07,300 We were actually 597 00:27:07,300 --> 00:27:08,080 talking one day 598 00:27:08,080 --> 00:27:08,720 about using 599 00:27:08,720 --> 00:27:09,680 an Active Directory 600 00:27:09,680 --> 00:27:11,380 server for an 601 00:27:11,380 --> 00:27:12,180 LDAP back end 602 00:27:13,080 --> 00:27:14,160 with the NIS 603 00:27:14,160 --> 00:27:16,160 module for Solaris 604 00:27:16,160 --> 00:27:17,460 to use a 2000 605 00:27:17,460 --> 00:27:18,600 machine to authenticate 606 00:27:18,600 --> 00:27:19,800 a Solaris machine. 607 00:27:20,780 --> 00:27:21,800 We never got around 608 00:27:21,800 --> 00:27:22,020 to that. 609 00:27:22,180 --> 00:27:22,900 Would have been 610 00:27:22,900 --> 00:27:23,360 kind of cool. 611 00:27:23,600 --> 00:27:24,160 Well, we know that 612 00:27:24,160 --> 00:27:24,660 that's the 613 00:27:24,660 --> 00:27:25,620 forward version 3, 614 00:27:25,720 --> 00:27:26,660 so that's what 615 00:27:26,660 --> 00:27:26,760 we're going to do. 616 00:27:30,080 --> 00:27:30,960 The UMichigan 617 00:27:30,960 --> 00:27:32,520 URL is right here. 618 00:27:33,620 --> 00:27:34,060 LDAP, 619 00:27:34,100 --> 00:27:34,900 ITD, 620 00:27:34,900 --> 00:27:35,240 UMich. 621 00:27:36,520 --> 00:27:37,360 OpenLDAP is based 622 00:27:37,360 --> 00:27:37,860 off of that, 623 00:27:37,960 --> 00:27:38,640 and there's a little 624 00:27:38,640 --> 00:27:38,880 more, 625 00:27:38,920 --> 00:27:39,760 there's more developers 626 00:27:39,760 --> 00:27:40,860 on the OpenLDAP team. 627 00:27:41,540 --> 00:27:42,420 I would stand 628 00:27:42,420 --> 00:27:43,260 behind them more 629 00:27:43,260 --> 00:27:44,320 than the OpenLDAP 630 00:27:44,320 --> 00:27:44,760 team myself. 631 00:27:45,600 --> 00:27:46,520 I think you have 632 00:27:46,520 --> 00:27:47,280 kind of a hierarchy 633 00:27:47,280 --> 00:27:48,400 between servers. 634 00:27:48,500 --> 00:27:49,100 You say you've got 635 00:27:49,100 --> 00:27:50,280 a server A and C, 636 00:27:50,300 --> 00:27:51,180 but you said 637 00:27:51,180 --> 00:27:51,580 the only other 638 00:27:51,580 --> 00:27:52,260 thing where it is 639 00:27:52,260 --> 00:27:53,160 is a server A. 640 00:27:53,180 --> 00:27:53,940 If they didn't 641 00:27:53,940 --> 00:27:54,520 have the information 642 00:27:54,520 --> 00:27:55,340 you can't afford 643 00:27:55,340 --> 00:27:55,860 the request 644 00:27:55,860 --> 00:27:56,760 to use the server A. 645 00:27:56,780 --> 00:27:57,660 That's exactly 646 00:27:57,660 --> 00:27:58,320 how it works. 647 00:27:58,800 --> 00:27:59,420 That's exactly 648 00:27:59,420 --> 00:27:59,940 how it works. 649 00:28:00,340 --> 00:28:00,900 It's awkward. 650 00:28:03,620 --> 00:28:03,980 Yeah, 651 00:28:04,720 --> 00:28:05,420 it's just on the 652 00:28:05,420 --> 00:28:05,980 server that you're 653 00:28:05,980 --> 00:28:06,360 querying, 654 00:28:06,400 --> 00:28:07,180 it needs to have 655 00:28:07,560 --> 00:28:08,680 other servers to find. 656 00:28:09,140 --> 00:28:09,980 It needs to know 657 00:28:09,980 --> 00:28:10,440 where to look 658 00:28:10,440 --> 00:28:11,080 for the other 659 00:28:11,080 --> 00:28:11,760 objects that you 660 00:28:11,760 --> 00:28:13,060 want to grab. 661 00:28:15,420 --> 00:28:16,140 It's not as bad 662 00:28:16,140 --> 00:28:16,440 anymore. 663 00:28:18,020 --> 00:28:18,880 If you're running 664 00:28:18,880 --> 00:28:20,260 huge, huge queries, 665 00:28:20,440 --> 00:28:20,940 you're going to see 666 00:28:20,940 --> 00:28:21,540 slowdowns. 667 00:28:21,720 --> 00:28:22,340 But, you know, 668 00:28:22,420 --> 00:28:22,980 everyone's running 669 00:28:22,980 --> 00:28:23,560 their LDAP servers 670 00:28:23,560 --> 00:28:24,500 in like 450s 671 00:28:24,500 --> 00:28:24,840 and craps. 672 00:28:24,860 --> 00:28:25,140 You're not going 673 00:28:25,140 --> 00:28:25,620 to have a problem. 674 00:28:29,180 --> 00:28:30,200 We have a question 675 00:28:30,200 --> 00:28:30,460 here. 676 00:28:30,560 --> 00:28:31,100 Do you have a 677 00:28:31,100 --> 00:28:32,380 shop on the 678 00:28:32,380 --> 00:28:33,060 LDAP market? 679 00:28:33,260 --> 00:28:34,140 Did you actually 680 00:28:34,140 --> 00:28:36,980 use the LDAP 681 00:28:36,980 --> 00:28:37,980 support to use 682 00:28:37,980 --> 00:28:38,540 the information? 683 00:28:38,860 --> 00:28:39,380 So, if you 684 00:28:39,380 --> 00:28:40,040 do that on the 685 00:28:40,040 --> 00:28:40,400 LDAP, 686 00:28:41,000 --> 00:28:42,080 can you find 687 00:28:42,080 --> 00:28:42,500 an IMAP? 688 00:28:42,600 --> 00:28:42,980 How do you 689 00:28:42,980 --> 00:28:43,520 do an LDAP 690 00:28:43,520 --> 00:28:44,220 watch IMAP 691 00:28:44,220 --> 00:28:44,560 from the 692 00:28:44,560 --> 00:28:44,820 time you 693 00:28:44,820 --> 00:28:45,520 do an IMAP? 694 00:28:45,580 --> 00:28:45,960 Well, 695 00:28:46,040 --> 00:28:47,240 Courier IMAP, 696 00:28:47,280 --> 00:28:48,980 which Inter7 697 00:28:48,980 --> 00:28:50,000 is now maintaining, 698 00:28:50,720 --> 00:28:51,680 supports LDAP 699 00:28:51,680 --> 00:28:52,200 for authentication. 700 00:28:52,720 --> 00:28:53,660 So, I had all 701 00:28:53,660 --> 00:28:54,100 the user's 702 00:28:54,100 --> 00:28:54,840 information stored 703 00:28:54,840 --> 00:28:55,800 in LDAP. 704 00:28:56,120 --> 00:28:56,600 Yeah. 705 00:28:57,300 --> 00:28:58,040 Someone back 706 00:28:58,040 --> 00:28:58,340 there had a 707 00:28:58,340 --> 00:28:58,580 question. 708 00:28:59,620 --> 00:29:00,600 What firmware 709 00:29:00,600 --> 00:29:01,080 database 710 00:29:01,080 --> 00:29:01,700 is not 711 00:29:01,700 --> 00:29:02,080 recommended 712 00:29:02,080 --> 00:29:03,000 for LDAP? 713 00:29:04,400 --> 00:29:04,960 SleepyCat? 714 00:29:06,200 --> 00:29:06,760 SleepyCat 715 00:29:06,760 --> 00:29:07,840 is what 716 00:29:07,840 --> 00:29:09,080 they roll 717 00:29:09,080 --> 00:29:09,540 out with 718 00:29:09,540 --> 00:29:10,020 and they 719 00:29:10,020 --> 00:29:10,680 suggest that 720 00:29:10,680 --> 00:29:11,100 you use. 721 00:29:12,240 --> 00:29:12,900 That's all 722 00:29:12,900 --> 00:29:13,220 I've ever 723 00:29:13,220 --> 00:29:13,460 used. 724 00:29:13,740 --> 00:29:14,300 SleepyCat 725 00:29:14,300 --> 00:29:14,480 DB. 726 00:29:15,700 --> 00:29:16,260 SleepyCat 727 00:29:16,260 --> 00:29:16,520 Berkeley 728 00:29:16,520 --> 00:29:16,780 DB, 729 00:29:16,900 --> 00:29:17,380 excuse me. 730 00:29:19,720 --> 00:29:20,380 What's the 731 00:29:20,380 --> 00:29:20,660 maximum 732 00:29:20,660 --> 00:29:21,180 use of 733 00:29:21,180 --> 00:29:21,640 LDAP 734 00:29:21,640 --> 00:29:22,040 support? 735 00:29:22,480 --> 00:29:22,620 And the 736 00:29:22,620 --> 00:29:23,180 second question 737 00:29:23,180 --> 00:29:23,500 is, 738 00:29:23,580 --> 00:29:24,180 what's the 739 00:29:24,180 --> 00:29:24,520 largest 740 00:29:24,520 --> 00:29:24,880 implementation 741 00:29:24,880 --> 00:29:25,640 you've seen 742 00:29:25,640 --> 00:29:26,080 as far as 743 00:29:26,080 --> 00:29:26,660 your number 744 00:29:26,660 --> 00:29:27,200 алась? 745 00:29:28,900 --> 00:29:29,440 Netscape. 746 00:29:30,280 --> 00:29:30,820 Corporate. 747 00:29:33,520 --> 00:29:34,600 411.com. 748 00:29:50,160 --> 00:29:51,240 411.com. 749 00:29:51,240 --> 00:29:51,660 So, 750 00:29:51,800 --> 00:29:52,280 what if 751 00:29:52,280 --> 00:29:52,560 we're 752 00:29:52,560 --> 00:29:53,000 talking 753 00:29:53,000 --> 00:29:53,720 to those 754 00:29:53,720 --> 00:29:54,040 services 755 00:29:54,040 --> 00:29:55,300 and they 756 00:29:55,300 --> 00:29:55,480 don't 757 00:29:55,480 --> 00:29:55,840 see us 758 00:29:55,840 --> 00:29:56,120 today 759 00:29:56,120 --> 00:29:56,380 and turn 760 00:29:56,380 --> 00:29:56,520 to 761 00:29:56,520 --> 00:29:56,640 internet 762 00:30:19,540 --> 00:30:21,400 The security of it 763 00:30:21,400 --> 00:30:23,020 versus Active Directory or NDS? 764 00:30:32,280 --> 00:30:33,540 I don't even know yet. 765 00:30:33,620 --> 00:30:34,500 It was just an assumption. 766 00:30:37,680 --> 00:30:39,420 It's passing clear text by default. 767 00:30:39,620 --> 00:30:42,760 So you'd want to use LDAP SSL. 768 00:30:42,900 --> 00:30:45,360 And since you're authenticating off an Active Directory server, 769 00:30:45,520 --> 00:30:47,640 again, not that we know that it's possible or not, 770 00:30:48,660 --> 00:30:50,080 you don't have SSL support. 771 00:31:09,420 --> 00:31:10,940 It's all in transport. 772 00:31:11,240 --> 00:31:12,960 It's not that much different from using RADIUS, 773 00:31:12,960 --> 00:31:15,120 except that RADIUS has to do everything before it sends it. 774 00:31:17,180 --> 00:31:20,160 So it'd be what's actually on your network 775 00:31:20,160 --> 00:31:21,000 that you need to worry about. 776 00:31:21,620 --> 00:31:23,660 As far as the machine, the access lists 777 00:31:23,660 --> 00:31:26,520 are what you want to set up to allow people on your network 778 00:31:26,520 --> 00:31:26,640 to access your network. 779 00:31:26,660 --> 00:31:28,740 So you don't have to either just compare passwords, 780 00:31:29,220 --> 00:31:30,880 just get usernames, user IDs. 781 00:31:38,460 --> 00:31:40,880 I haven't done that, so I can't really comment 782 00:31:40,880 --> 00:31:42,680 on what you can do with it. 783 00:31:48,320 --> 00:31:49,500 I'm sorry, dude. I can't hear you. 784 00:31:55,900 --> 00:31:58,220 Oh, a lot of bugs in LDAP. 785 00:31:59,340 --> 00:32:00,460 Yeah, documentation. 786 00:32:01,220 --> 00:32:02,340 The first bug. 787 00:32:05,400 --> 00:32:09,080 Lack of any knowledge amongst network administrators 788 00:32:09,080 --> 00:32:10,320 about LDAP. 789 00:32:12,540 --> 00:32:15,420 Most of the bugs are just user-created. 790 00:32:15,680 --> 00:32:18,840 Just lack of knowledge, or no one's ever used it before. 791 00:32:20,360 --> 00:32:21,220 That or confusion. 792 00:32:22,480 --> 00:32:23,960 When you set it up for the first time, 793 00:32:23,980 --> 00:32:24,820 you're going to be really frustrated, 794 00:32:24,880 --> 00:32:25,720 just like anything else. 795 00:32:26,000 --> 00:32:27,340 The first time I set it up, I'm like, 796 00:32:27,840 --> 00:32:28,640 what the fuck? 797 00:32:28,760 --> 00:32:30,180 Just use SQL or something. 798 00:32:30,560 --> 00:32:31,520 But after a while, I realize, 799 00:32:31,620 --> 00:32:33,160 okay, I see where this fits in. 800 00:32:35,000 --> 00:32:36,600 I haven't run into any major bugs. 801 00:33:00,560 --> 00:33:01,180 That's easy, though. 802 00:33:01,240 --> 00:33:02,440 Because you dump it to an LDF, 803 00:33:02,560 --> 00:33:03,420 pull out what you don't want, 804 00:33:03,500 --> 00:33:04,160 and then dump it back in. 805 00:33:05,020 --> 00:33:05,900 I mean, I would... 806 00:33:06,780 --> 00:33:07,360 You'd think. 807 00:33:08,900 --> 00:33:11,740 That's a way I've found to fix the database a lot of times. 808 00:33:11,820 --> 00:33:12,860 Just dump it to an LDF, 809 00:33:13,020 --> 00:33:13,840 pull out what you want, 810 00:33:13,920 --> 00:33:14,520 and then dump it back. 811 00:33:16,160 --> 00:33:16,800 Anyone else? 812 00:33:18,500 --> 00:33:20,640 He was talking about corruption in databases. 813 00:33:21,280 --> 00:33:21,620 Yeah. 814 00:33:21,900 --> 00:33:24,160 I had problems when you set it up for replication. 815 00:33:24,360 --> 00:33:26,680 The corruption did not work at all. 816 00:33:26,900 --> 00:33:30,540 And then I just dump it to LDF and put it back in. 817 00:33:30,840 --> 00:33:31,240 Yeah. 818 00:33:31,940 --> 00:33:32,800 LDF is the... 819 00:33:32,800 --> 00:33:33,860 It just dumps... 820 00:33:33,860 --> 00:33:35,480 See the format I have here on the command line? 821 00:33:35,960 --> 00:33:36,580 It just... 822 00:33:36,580 --> 00:33:38,860 It just basically dumps the database back to that format 823 00:33:38,860 --> 00:33:41,040 out of the DB format. 824 00:33:41,860 --> 00:33:43,440 So you can go in there and modify it 825 00:33:43,440 --> 00:33:45,280 or replicate it, back it up, 826 00:33:45,420 --> 00:33:46,500 show it to your friends, 827 00:33:47,100 --> 00:33:48,700 tattoo it on your back or something. 828 00:33:49,280 --> 00:33:53,180 Would you rather have an LDF server 829 00:33:53,180 --> 00:33:54,260 on, say, a DMZ, 830 00:33:54,500 --> 00:33:56,120 if you're kind of, say, a database, 831 00:33:56,600 --> 00:33:57,020 but I mean, 832 00:33:57,060 --> 00:33:59,460 I mean, how secure are the servers? 833 00:34:00,700 --> 00:34:01,260 Not very. 834 00:34:01,520 --> 00:34:02,380 Out of the box. 835 00:34:03,080 --> 00:34:05,240 Well, the problem you're going to run into is 836 00:34:05,240 --> 00:34:06,560 if it's on your DMZ, 837 00:34:06,560 --> 00:34:07,560 and someone knows it's there, 838 00:34:07,620 --> 00:34:08,920 they're going to be able to query it 839 00:34:08,920 --> 00:34:09,880 for certain user information. 840 00:34:11,540 --> 00:34:13,500 But if you have it on the DMZ specifically 841 00:34:13,500 --> 00:34:15,280 for a few machines on the DMZ, 842 00:34:15,700 --> 00:34:19,080 you can have it post simply what it needs. 843 00:34:19,220 --> 00:34:21,020 You can have it post the portion of the directory 844 00:34:21,020 --> 00:34:21,720 that it needs. 845 00:34:22,080 --> 00:34:23,140 So if... 846 00:34:23,580 --> 00:34:25,420 I don't know, say you have a list of all your clients 847 00:34:25,420 --> 00:34:27,180 for your web servers in the LDF server, 848 00:34:27,400 --> 00:34:30,260 you can have the one on the DMZ hold only that 849 00:34:30,820 --> 00:34:36,120 and have it replicate or work with an internal LDF server. 850 00:34:36,620 --> 00:34:38,300 You can use ACLs also. 851 00:34:38,600 --> 00:34:38,740 Yeah. 852 00:34:39,040 --> 00:34:40,760 You can make it so that the user 853 00:34:40,760 --> 00:34:43,320 is the only person that can see their own password. 854 00:34:43,460 --> 00:34:44,640 So when they use it, 855 00:34:44,700 --> 00:34:46,620 they can see their name and their whatever, 856 00:34:46,800 --> 00:34:49,800 but only to know what attributes they didn't see. 857 00:34:49,920 --> 00:34:53,040 So they can only write to their own password. 858 00:34:55,480 --> 00:34:57,560 So if you compare it to LDF, 859 00:34:57,580 --> 00:34:58,900 when it gets to TACACS plus, 860 00:35:00,000 --> 00:35:01,380 how do you think it will... 861 00:35:01,380 --> 00:35:03,600 I haven't used TACACS before. 862 00:35:04,420 --> 00:35:05,820 Actually, I have to as soon as I get back. 863 00:35:05,940 --> 00:35:06,360 I think... 864 00:35:06,560 --> 00:35:07,320 Play with TACACS. 865 00:35:09,600 --> 00:35:10,880 LDAP versus RADIUS. 866 00:35:11,260 --> 00:35:12,760 I was bored a long time ago. 867 00:35:12,940 --> 00:35:16,320 And I wrote a QML backend in Perl 868 00:35:16,320 --> 00:35:19,940 that used RADIUS for authentication and user information. 869 00:35:20,740 --> 00:35:22,980 And it's pretty convoluted to use RADIUS 870 00:35:22,980 --> 00:35:25,740 to store real names, forwarding addresses, 871 00:35:27,400 --> 00:35:29,100 mailboxes, pictures of people, 872 00:35:29,340 --> 00:35:30,620 what languages they speak. 873 00:35:31,600 --> 00:35:34,240 I think it should stick only to doing authentication 874 00:35:34,240 --> 00:35:35,560 with RADIUS. 875 00:35:35,780 --> 00:35:36,380 Authentication. 876 00:35:36,560 --> 00:35:38,260 And pulling down, you know, network information, 877 00:35:38,560 --> 00:35:39,720 not ROS and NAS information. 878 00:35:49,500 --> 00:35:50,460 Okay, authentication. 879 00:35:51,440 --> 00:35:52,900 You have the benefit with RADIUS 880 00:35:52,900 --> 00:35:54,540 because more stuff supports it right now. 881 00:36:03,880 --> 00:36:04,840 Just getting to that. 882 00:36:07,300 --> 00:36:07,700 Authentication. 883 00:36:08,040 --> 00:36:09,960 Accounting was one of the ones you mentioned. 884 00:36:12,360 --> 00:36:13,140 And authorization. 885 00:36:13,500 --> 00:36:15,240 Authorization, you're going to win with LDAP every time. 886 00:36:16,960 --> 00:36:18,360 You could say, you know, you can... 887 00:36:18,860 --> 00:36:22,020 If you're running the NIS backend with LDAP, 888 00:36:22,080 --> 00:36:23,560 you can have it do everything on your machine. 889 00:36:24,200 --> 00:36:25,740 So you're going to have the benefit there. 890 00:36:27,280 --> 00:36:28,620 And it can be distributed, too. 891 00:36:29,260 --> 00:36:31,440 You know, RADIUS, you can do the whole... 892 00:36:31,440 --> 00:36:32,140 What is it called? 893 00:36:33,380 --> 00:36:34,600 Realms with RADIUS. 894 00:36:34,900 --> 00:36:36,460 But you're still limited to the... 895 00:36:36,560 --> 00:36:36,900 Authentication. 896 00:36:37,060 --> 00:36:39,540 You can't store as many objects in RADIUS. 897 00:36:40,600 --> 00:36:42,740 So authentication, you're probably going to win with RADIUS 898 00:36:42,740 --> 00:36:43,860 if that's all you want to do. 899 00:36:47,220 --> 00:36:48,980 Is that answer your question? 900 00:36:49,580 --> 00:36:50,140 Convoluted enough? 901 00:36:50,880 --> 00:36:52,180 Maybe you can flag me down later 902 00:36:52,180 --> 00:36:53,360 and hit me or something. 903 00:36:54,080 --> 00:36:54,760 Anyone else? 904 00:36:55,360 --> 00:36:56,600 Did I bore you to death enough? 905 00:36:56,980 --> 00:36:57,380 Okay. 906 00:37:00,200 --> 00:37:00,600 My... 907 00:37:00,600 --> 00:37:01,200 You can... 908 00:37:01,200 --> 00:37:02,500 I'll have slides for you, 909 00:37:02,520 --> 00:37:03,520 which weren't here today. 910 00:37:04,080 --> 00:37:05,120 You can get them here. 911 00:37:05,900 --> 00:37:06,540 I'm going to write them down. 912 00:37:06,540 --> 00:37:06,980 I'm going to write down the URL. 913 00:37:11,700 --> 00:37:12,780 Or you can email me. 914 00:37:13,580 --> 00:37:14,440 It's my email address. 915 00:37:15,420 --> 00:37:15,980 Always around. 916 00:37:16,100 --> 00:37:16,540 Always available. 917 00:37:16,700 --> 00:37:17,600 If you see me here at cons, 918 00:37:17,680 --> 00:37:18,520 just run up to me, 919 00:37:18,540 --> 00:37:19,300 ask me a question, whatever. 920 00:37:19,960 --> 00:37:22,260 I'll either avoid the question or deny it. 921 00:37:24,640 --> 00:37:25,500 That's been LDAP. 922 00:37:25,860 --> 00:37:26,660 That's what I know. 923 00:37:26,780 --> 00:37:27,680 That's what you know now. 924 00:37:28,540 --> 00:37:29,340 Hope you enjoyed it. 925 00:37:29,600 --> 00:37:30,220 Thank you. 926 00:37:36,840 --> 00:37:37,620 Whatever. 927 00:37:37,780 --> 00:37:38,240 Whatever.