tag:blogger.com,1999:blog-3270575889602064323.post7035169497009213202..comments2023-04-26T18:55:15.972+10:00Comments on The Tuxnetworks Linux Bible: HOWTO: SAMBA + LDAP on 10.04 Lucid Part 1Unknownnoreply@blogger.comBlogger42125tag:blogger.com,1999:blog-3270575889602064323.post-5359150624396864552012-11-12T18:12:08.061+11:002012-11-12T18:12:08.061+11:00on debian squeeze, ldiff export seemed to fail and...on debian squeeze, ldiff export seemed to fail and afterwards, anonymous login also failed. Any tips?<br /><br /># ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/ldap/schema/cosine.ldif<br />SASL/EXTERNAL authentication started<br />SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth<br />SASL SSF: 0<br />adding new entry "cn=cosine,cn=schema,cn=config"<br />ldap_add: Other (e.g., implementation specific) error (80)<br /> additional info: olcAttributeTypes: Duplicate attributeType: "0.9.2342.19200300.100.1.2"<br /><br /># ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/ldap/schema/nis.ldif<br />SASL/EXTERNAL authentication started<br />SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth<br />SASL SSF: 0<br />adding new entry "cn=nis,cn=schema,cn=config"<br />ldap_add: Other (e.g., implementation specific) error (80)<br /> additional info: olcAttributeTypes: Duplicate attributeType: "1.3.6.1.1.1.1.2"<br /><br /># ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/ldap/schema/inetorgperson.ldif<br />SASL/EXTERNAL authentication started<br />SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth<br />SASL SSF: 0<br />adding new entry "cn=inetorgperson,cn=schema,cn=config"<br />ldap_add: Other (e.g., implementation specific) error (80)<br /> additional info: olcAttributeTypes: Duplicate attributeType: "2.16.840.1.113730.3.1.1"<br /><br /># ldapadd -Y EXTERNAL -H ldapi:/// -f ~/backend.ldif<br />SASL/EXTERNAL authentication started<br />SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth<br />SASL SSF: 0<br />adding new entry "cn=module,cn=config"<br />ldap_add: Other (e.g., implementation specific) error (80)<br /> additional info: handler exited with 1<br /><br /># smbclient -L localhost<br />Enter root's password: <br />session setup failed: NT_STATUS_IO_TIMEOUT<br /><br />smb services seemed to be running<br /><br />tcp 0 0 0.0.0.0:389 0.0.0.0:* LISTEN 5169/slapd <br /><br />tcp6 0 0 :::139 :::* LISTEN 5349/smbd <br /><br />5349/smbd <br />tcp6 0 0 :::389 :::* LISTEN 5169/slapd<br />5345/nmbd <br />udp 0 0 192.168.69.128:137 0.0.0.0:* 5345/nmbd <br />udp 0 0 0.0.0.0:137 0.0.0.0:* 5345/nmbd <br />udp 0 0 192.168.69.255:138 0.0.0.0:* 5345/nmbd <br />udp 0 0 192.168.69.128:138 0.0.0.0:* 5345/nmbd <br />udp 0 0 0.0.0.0:138 0.0.0.0:* 5345/nmbdUmarhttps://www.blogger.com/profile/09404899724969109133noreply@blogger.comtag:blogger.com,1999:blog-3270575889602064323.post-8007790539804668922012-05-24T05:07:29.971+10:002012-05-24T05:07:29.971+10:00root@laplace:~# smbclient -L localhost
Enter root&...root@laplace:~# smbclient -L localhost<br />Enter root's password: <br />Anonymous login successful<br />Domain=[MYSAMBAWORKGROUP] OS=[Unix] Server=[Samba 3.4.7]<br />tree connect failed: NT_STATUS_END_OF_FILE<br /><br />I did exactly what was said in the tutorial, but in the last command i had this issue. Anyone know how to fix it?<br /><br />Thanks in advance!Fernandonoreply@blogger.comtag:blogger.com,1999:blog-3270575889602064323.post-70788334746352740302012-04-17T08:41:00.057+10:002012-04-17T08:41:00.057+10:00Excellent tutorial Brett - every step went smoothl...Excellent tutorial Brett - every step went smoothly well. Well done indeed :)Benhttps://www.blogger.com/profile/15361711215654574728noreply@blogger.comtag:blogger.com,1999:blog-3270575889602064323.post-34696145200216601752012-03-15T09:17:40.324+11:002012-03-15T09:17:40.324+11:00Thank you !!Thank you !!Tomashttps://www.blogger.com/profile/14000873138826667486noreply@blogger.comtag:blogger.com,1999:blog-3270575889602064323.post-30161124661256054642012-03-09T09:02:24.355+11:002012-03-09T09:02:24.355+11:00Try it again now Tomas, I was doing some work yest...Try it again now Tomas, I was doing some work yesterday and broke a hyperlink.<br /><br />It should be OK now.Bretthttps://www.blogger.com/profile/13310157619082760656noreply@blogger.comtag:blogger.com,1999:blog-3270575889602064323.post-65892077539245348332012-03-09T02:00:08.146+11:002012-03-09T02:00:08.146+11:00i can't acces to this file wget http://www.tux...i can't acces to this file wget http://www.tuxnetworks.com/configs/backend.ldifTomashttps://www.blogger.com/profile/14000873138826667486noreply@blogger.comtag:blogger.com,1999:blog-3270575889602064323.post-74298306529778642992012-01-31T07:32:19.072+11:002012-01-31T07:32:19.072+11:00Stupid question, but why do we need Samba if we ar...Stupid question, but why do we need Samba if we are already using NFS (with no windows clients)? In other words, what do we get from Samba+NFS+LDAP that NFS+LDAP doesn't offer?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3270575889602064323.post-20461252795245028422012-01-26T01:11:39.041+11:002012-01-26T01:11:39.041+11:00root@samba-3-4:~# smbclient -L localhost
Enter roo...root@samba-3-4:~# smbclient -L localhost<br />Enter root's password: <br />session setup failed: NT_STATUS_LOGON_FAILURE<br /><br />Anyone know how to fix this issue?<br /><br />I've made sure the password set in the backend.ldif is the same as the password I used for smbpasswd -W<br /><br />HELP ME....!!!Noe Rodriguez Hilariohttps://www.blogger.com/profile/12220001670380667842noreply@blogger.comtag:blogger.com,1999:blog-3270575889602064323.post-68012405500641524572012-01-18T00:11:47.892+11:002012-01-18T00:11:47.892+11:00Every time I get stuck on the last step of this.
...Every time I get stuck on the last step of this.<br /><br />This is the output I get for the last command:<br /><br /># smbclient -L localhost<br />Enter root's password: <br />Anonymous login successful<br />Domain=[SambaDomain] OS=[Unix] Server=[Samba 3.4.7]<br /><br /> Sharename Type Comment<br /> --------- ---- -------<br /> print$ Disk Printer Drivers Share<br /> shared Disk <br /> archive Disk <br /> IPC$ IPC IPC Service (Samba 3.4.7)<br />Anonymous login successful<br />Domain=[SambaDomain] OS=[Unix] Server=[Samba 3.4.7]<br /><br /> Server Comment<br /> --------- -------<br /><br /> Workgroup Master<br /> --------- -------<br /> WORKGROUP MyServer<br /><br /><br />I can't figure out what I'm doing wrong, but I can't get anything to show up under the Server Comment line. Any ideas?Unknownhttps://www.blogger.com/profile/08994073248584962992noreply@blogger.comtag:blogger.com,1999:blog-3270575889602064323.post-29572941231633036042011-10-18T16:47:52.955+11:002011-10-18T16:47:52.955+11:00thanks for this awsome guide.. been ripping my hai...thanks for this awsome guide.. been ripping my hair for days until now :)..<br /><br />br,<br />andyAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-3270575889602064323.post-41982958780095082992011-10-11T17:46:04.876+11:002011-10-11T17:46:04.876+11:00Hi
what response are you meant to get when you ad...Hi<br /><br />what response are you meant to get when you add the schema<br /><br />i get adding new entry "cn=cosine,cn=schema,cn=config"<br />ldap_add: other implementation specific error (80)<br />additional info: ilcAttributeTypes: Duplicate attributetype: "0.9.2342.19200300.100.1.2"Anthonynoreply@blogger.comtag:blogger.com,1999:blog-3270575889602064323.post-83257385380622872282011-09-07T05:54:55.678+10:002011-09-07T05:54:55.678+10:00Hello
Its a very good manual but i have a one doub...Hello<br />Its a very good manual but i have a one doubt, is possible install ldap +samba en ubuntu 10.10 maverick with this guide?vagohttps://www.blogger.com/profile/15016727900765421657noreply@blogger.comtag:blogger.com,1999:blog-3270575889602064323.post-8637610135918859622011-06-03T07:01:51.833+10:002011-06-03T07:01:51.833+10:00That worked like a charm. One question, has anybo...That worked like a charm. One question, has anybody extended this with LDAP replication for creating BDCs as well as a PDC?A. Clausennoreply@blogger.comtag:blogger.com,1999:blog-3270575889602064323.post-32534261516236110162011-04-14T00:40:43.745+10:002011-04-14T00:40:43.745+10:00At one point in the HOWTO, you mention running thi...At one point in the HOWTO, you mention running this command:<br /><br /> sudo pam-auth-update ldap<br /><br />A curses menu pops up with 4 choices:<br /><br />Unix authentication<br />Winbind NT/Active Directory authentication<br />LDAP Authentication<br />SMB password synchronization<br /><br />which ones should we use for a simple Samba setup where we only want to have Samba user entries in LDAP?<br /><br />Just the last one? I assume you used all of them since by default, I believe all four are checked.Johnhttps://www.blogger.com/profile/08339066775271342922noreply@blogger.comtag:blogger.com,1999:blog-3270575889602064323.post-36256398022713862402011-04-13T06:02:44.906+10:002011-04-13T06:02:44.906+10:00Follow up post to my last complaint about things n...Follow up post to my last complaint about things not working normally right after reboot for 5 - 10 minutes and then being fine:<br /><br />There's a comment in this thread:<br /><br />http://ubuntuforums.org/archive/index.php/t-727111.html<br /><br />from 2008 that mentions how slapd must be started *before* the rsyslogd service. I messed around a bit trying to figure out the preferred way of doing this in Lucid, but finally just did what the guy suggested there (post marked "March 18th, 2008, 09:52 AM" by "rickyjones", where he says to change the S19slapd entry in rc2.d to S09slapd.<br /><br />Once I did this, the next reboot was immediately successful. Good to know, but I wish it was easier to discover -- perhaps my (cross) post will help someone else.Johnhttps://www.blogger.com/profile/08339066775271342922noreply@blogger.comtag:blogger.com,1999:blog-3270575889602064323.post-24444457949669668582011-04-13T05:35:14.497+10:002011-04-13T05:35:14.497+10:00Hi, great tutorial. I echo the sentiments of most...Hi, great tutorial. I echo the sentiments of most of the other posters, I'd been struggling with this for hours (starting w/ the generally-reliable Ubuntu official docs) with no luck, and with this tutorial, I eventually have things working.<br /><br />One big problem I'm still having though is that after reboot, things are weird with Samba authentication to the LDAP accounts and even to general Unix password login for about 5 - 10 minutes, at which point it magically starts working again.<br /><br />I was looking into it being a problem with the runlevels on slapd vs. libnss-ldap or winbind, etc., but my /etc/rc2.d looks like this:<br /><br />S19slapd -> ../init.d/slapd<br />S20libnss-ldap -> ../init.d/libnss<br />S20winbind -> ../init.d/winbind<br />S50rsync -> ../init.d/rsync<br /> ...<br /><br />so I assume that's not the problem. None of the logs I've reviewed seem to offer much help here. Has anyone else suffered this same fate? I basically started from a totally fresh Lucid install (10.04.2) and followed this HOWTO almost verbatim.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3270575889602064323.post-19991891155831915732011-03-29T23:50:40.247+11:002011-03-29T23:50:40.247+11:00Hi I have been struggling to get this to work . My...Hi I have been struggling to get this to work . My samba log says <br />[2011/03/29 02:59:31, 0] lib/smbldap.c:1086(smbldap_connect_system)<br /> failed to bind to server ldap://127.0.0.1 with dn="cn=admin,dc=faceless,dc=com" Error: Can't contact LDAP server<br /> (unknown)<br />[2011/03/29 02:59:31, 1] lib/smbldap.c:1265(another_ldap_try)<br /> Connection to LDAP server failed for the 1 try!<br />[2011/03/29 02:59:34, 0] smbd/server.c:457(smbd_open_one_socket)<br /> smbd_open_once_socket: open_socket_in: Address already in use<br /><br />Help would be greatly appreciated.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3270575889602064323.post-79303823660070341012011-03-18T02:02:42.193+11:002011-03-18T02:02:42.193+11:00Maybe somewhat of a newbie question, but can the p...Maybe somewhat of a newbie question, but can the prerequisite NFS server for exporting home directories be located on the same Lucid server as SAMBA + LDAP?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3270575889602064323.post-83585935271606285112011-03-10T09:44:37.256+11:002011-03-10T09:44:37.256+11:00THANK YOU!!!!!!!!!!!!!!!!!!
This is a great write...THANK YOU!!!!!!!!!!!!!!!!!!<br /><br />This is a great write-up. I've battled through this on my own a few times without using the cn=config stuff. This just saved me a few hours of pain :)Tylernoreply@blogger.comtag:blogger.com,1999:blog-3270575889602064323.post-67805805367864410842011-03-03T00:48:56.313+11:002011-03-03T00:48:56.313+11:00Finally found some documentation that works!! Tha...Finally found some documentation that works!! Thanks so much for taking the time to put all this together!<br /><br />JLUnknownhttps://www.blogger.com/profile/15357472608531285505noreply@blogger.comtag:blogger.com,1999:blog-3270575889602064323.post-55470768023172716262011-02-15T15:06:09.451+11:002011-02-15T15:06:09.451+11:00Finally, it's work, thanks a bunchFinally, it's work, thanks a bunchAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-3270575889602064323.post-26733989401814868092011-02-12T09:36:40.521+11:002011-02-12T09:36:40.521+11:00It's ok!!!
Thanks...
He seguido los pasos de ...It's ok!!!<br />Thanks...<br /><br />He seguido los pasos de este blog.... y funciona correctamente.<br /><br />Gracias a todos por sus aportesluchophttps://www.blogger.com/profile/07314577839658725676noreply@blogger.comtag:blogger.com,1999:blog-3270575889602064323.post-9912501995146551842011-02-09T01:00:16.120+11:002011-02-09T01:00:16.120+11:00Thank you so so so very much! I had been struggli...Thank you so so so very much! I had been struggling to get LDAP and Samba to work for many many hours now. I was about ready to defenestrate my terminal, and server. Also what ever else I could get my hands on. Your post gave me a few sane moments and I made it work. You Rock! <br /><br /><br />Thanks again for helping the community!<br />Best Regards.<br />//Ian\\Ianhttps://www.blogger.com/profile/16097471736609680155noreply@blogger.comtag:blogger.com,1999:blog-3270575889602064323.post-69251551433167586302011-01-23T19:54:50.230+11:002011-01-23T19:54:50.230+11:00hi:)
my name is Ilya
i have some prob..
after i ha...hi:)<br />my name is Ilya<br />i have some prob..<br />after i had successfully join winxp client to the domain,after reboot,in windows log on menu ,i have error "the system cannot log you on now because the domain SAMBA is not available":(((<br />any ideas?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3270575889602064323.post-49911064796911138002011-01-23T19:53:39.758+11:002011-01-23T19:53:39.758+11:00hi:)
my name is Ilya
i have some prob..
after i ha...hi:)<br />my name is Ilya<br />i have some prob..<br />after i had successfully join winxp client to the domain,after reboot,in windows log on menu ,i have error "the system cannot log you on now because the domain SAMBA is not available":(((<br />any ideas?Anonymousnoreply@blogger.com