View Full Version : [ubuntu] Likewise error when attempting to join Windows domain
_UsUrPeR_
June 10th, 2010, 08:00 PM
Hey all. I'm having a problem getting likewise to connect to a Windows 2008 R2 server on our network.
root@place:~# domainjoin-cli join domainiwant.com Administrator
Joining to AD Domain: domainiwant.com
With Computer DNS Name: jsass.domainiwant.com
Administrator@DOMAINIWANT.COM's password:
Error: Lsass Error [code 0x00080047]
9502 (0x251E) DNS_ERROR_BAD_PACKET - A bad packet was received from a DNS server. Potentially the requested address does not exist.
I have already read up on this a little bit. Both servers are within a minute of each other, so I am not concerned about server timing. I am not sure where to go from this point. Everything I have read seems to indicate that this should "just work". Any suggestions would be helpful.
lumpie
June 12th, 2010, 11:37 PM
Im getting the same error (and an additional one) with a Windows 2003 R2 server. I ran
1. sudo apt-get update
2. sudo apt-get install likewise-open
3. sudo domainjoin-cli join fqdn of your domain Administrator
4. sudo update-rc.d likewise-open defaults
5. sudo /etc/init.d/likewise-open start
After step 3, I get
Joining to AD Domain: mydomain.local
With Computer DNS Name: ubuntu.mydomain.local
Administrator@MYDOMAIN.LOCAL's password: [I entered it]
Error: Lsass Error [code 0x00080047]
40286 (0x9D5E) LW_ERROR_LDAP_SERVER_DOWN - Unknown error
Both DCs are available and can ping the first of 2 NICs on the Ununtu 10.04 box, which has a DHCP address from the DC.
_UsUrPeR_
June 13th, 2010, 07:39 AM
Ok, I got it.
I was able to fix this by installing a the Windows DNS server on my Windows 2k8 R2 server, and switching the /etc/resolv.conf on the likewise-installed Ubuntu client to use the Windows server for DNS. That fixed my problem. I keep forgetting that Windows server products assume that they are the center of your network's universe.
Try installing a Windows DNS server on your Win 2k3 server. I hope the same works for you.
lumpie
June 15th, 2010, 11:53 PM
Ok, I got it.
I was able to fix this by installing a the Windows DNS server on my Windows 2k8 R2 server, and switching the /etc/resolv.conf on the likewise-installed Ubuntu client to use the Windows server for DNS. That fixed my problem. I keep forgetting that Windows server products assume that they are the center of your network's universe.
Try installing a Windows DNS server on your Win 2k3 server. I hope the same works for you.
Both Windows DCs are DNS servers. I have no idea where to find /etc/resolv.conf or how to edit it if I found it.
lumpie
June 16th, 2010, 03:42 PM
in /etc/resolv.con, the main DC is listed twice, the secondary is listed once, all as nameservers
nameserver 192.168.1.100
nameserver 192.168.1.101
nameserver 192.168.1.100
#the libc may not support more than 3 nameservers.
#The nameservers listed below may not be recognized.
nameserver 192.168.1.101
Completely clueless as to what to do now. :confused:
lumpie
June 16th, 2010, 06:28 PM
I believe what is listed in /etc/resolv.conf is correct, so this machine does know of the DNS servers in the domain. So maybe thats not the problem.
jeight
September 30th, 2010, 01:51 PM
It's you Windows Firewall. Either stop your firewall or make exceptions for the ports that likewise uses.
_UsUrPeR_
September 30th, 2010, 03:25 PM
I found another interesting problem with likewise, but this may require a new thread.
We are attempting to authenticate Ubuntu users against a AD database, which works up until ~15 users are logged in. From that point on, when attempting to authenticate, I am seeing that instead of substituting @fqdn via likewise, it is substituting the user's name @localhost.
An example:
an attempted login which works would normally show a login like this:
user entered at Ubuntu LTSP login screen in LDM:
jsass
What AD sees via Likewise: "jsass@schooldistrict.org" (schooldistrict.org is the added FQDN required for AD authentication)
When an attempted login fails, it will show something like this:
user entered at Ubuntu LTSP login screen in LDM:
jsass
what AD sees via Likewise: "jsass@ubuntu.localhost (ubuntu.com would be the name given in the /etc/hostname file).
I have not seen any way to get this to reliably concatenate "@schooldistrict.org" to the end of a user's name. Again, this is something that only happens once about 15 users have already successfully authenticated against the AD database. It seems like a likewise-specific problem.
atworkwithjf
October 12th, 2010, 09:34 PM
@joekillspeople
Are yous till having issues here with Likewise-Open? I'm curious which version of Ubuntu you are using and what version of Likewise. Version 6 is available on the Likewise-Open website.
It also seems that most of your issues have to do with DNS related issues on your linux machines.
I'll be happy to help you resolve this if I can get some more information.
-atworkwithjf
karmasagent
November 22nd, 2010, 04:13 PM
@ atworkwithjf
I could use some assistance. I've read through every thread on the internets about this one and still no solution.
I am stuck on the error:
"Error: Lsass Error [code 0x00080047]
9502 (0x251E) DNS_ERROR_BAD_PACKET - A bad packet was received from a DNS
server. Potentially the requested address does not exist."
I am running Windows Server 2008 R2 in a virtual machine (VMWare Workstation - the latest), as is my Ubuntu 10.10 installation. I have 3 other Windows-based VMs that all connect to the W2K8R2 domain server without issue. The domain is cylon.local and the domain server itself is named hivemind.
My /etc/resolv.conf file looks like this:
# Generated by NetworkManager
search 192.168.5.10
nameserver 192.168.5.10
Both are the IP of my W2K8R2 Domain Controller which is set up also as the domain DNS server.
I have manually set the network config information in my network adapter as such:
IP: 192.168.5.55
Netmask: 255.255.255.0
Gateway: 192.168.5.1
DNS Servers: 192.168.5.10, 4.2.2.2
When I proceed through the steps - either GUI or command line these are the values I use (copy/pasted from my console - two attempts represented):
"sudo domainjoin-cli join cylon.local michael
Joining to AD Domain: cylon.local
With Computer DNS Name: ubuntu.cylon.local
michael@CYLON.LOCAL's password:
Error: Lsass Error [code 0x00080047]
40286 (0x9D5E) LW_ERROR_LDAP_SERVER_DOWN - Unknown error
michael@ubuntu:~$ sudo domainjoin-cli join cylon michael
Joining to AD Domain: cylon
With Computer DNS Name: ubuntu.cylon
michael@CYLON's password:
Error: Lsass Error [code 0x00080047]
9502 (0x251E) DNS_ERROR_BAD_PACKET - A bad packet was received from a DNS
server. Potentially the requested address does not exist"
I've done the uninstall/reinstall of likewise-open and have tried every other little trick listed in this thread and others. I have a netscreen onsite so have all machine firewalls turned off. I'm pulling my hair out!!
Any assistance on this matter would be VERY much appreciated.
Thanks!
:confused:
atworkwithjf
November 22nd, 2010, 05:52 PM
There is a bug in OpenLDAP.
Have you looked into the Likewise forums?
http://www.likewise.com/community/index.php/forums/viewannounce/863_6/
Details the problem. They have a version on their website which is not effected in the same way the version in main is (not dependent on the build of OpenLDAP in maverick).
This bug in OpenLDAP has a fix already committed so it should not be long before it's resolved in an update.
jimerman
February 20th, 2011, 12:03 AM
Sorry, I am new to Ubuntu. I followed the link, but I don't understand how to install / apply the package you are referring to. I have Ubuntu 10.4.
I click on the page ttps://launchpad.net/~ssalley/+archive/ppa/+packages (https://launchpad.net/%7Essalley/+archive/ppa/+packages), that shows me 2 packages. What do I download? LW-Open? openldap? Both? OK, so how do I download?
I clicked on the architecture (i386), then do I download all of the built files? How do I incorporate those into my installed version?
atworkwithjf
February 21st, 2011, 06:34 PM
You should consider downloading the newest version from the Likewise website (version 6).
http://www.likewise.com/download/
This is a much updated version compared to the PPA version.
Their Docs are available here:
http://www.likewise.com/resources/documentation_library/manuals/open/likewise-open-guide.html
Quickstart Guide:
http://www.likewise.com/resources/documentation_library/manuals/open/likewise-open-guide.html#quick-start
jimerman
February 23rd, 2011, 05:33 PM
Thanks! I downloaded the Ubuntu x86 version from Likewise web site, but when I execute the installer it says it is not supported. I removed Likewise from the Software Center and rebooted, but no go.
I think this will solve the problem, but it won't let me install. Perhaps there are some conf files to remove?
________________________________
MIT Kerberos - MIT Kerberos 5 and other licenses
OpenLDAP - OpenLDAP Public License
Likewise DCE-RPC - BSD
LibXML2 - BSD
libuuid from e2fsprogs - BSD
libiconv - LGPLv2
OpenSSL - BSD
For more details and for the full text for each of these
licenses, read the LICENSES and COPYING files included with
this software.
Do you accept the terms of these licenses? (yes/no)
yes
License accepted.
Would you like to install now? (yes/no)
yes
Install started
You have the likewise-open package from Ubuntu installed.
Upgrading from the likewise-open package is not supported.
administrator@wkstn10:~/Downloads/Ubuntu/AddOns$
________________________________________
atworkwithjf
February 23rd, 2011, 07:44 PM
Sounds like you are using the installer for the wrong architecture.
Are you using 32 bit or 64 bit Ubuntu?
jimerman
February 23rd, 2011, 10:38 PM
32 bit, and made sure to download the right one from Likewise. However, after I did that, I couldn't get the GUI to come up, so I'm not sure the installation was clean. I have reinstalled Ubuntu 10.10, installed Likewise from the Software Center, and run a system update. I am back where I started.
atworkwithjf
February 23rd, 2011, 10:52 PM
We DO NOT advise using the software center. Use the Synaptic Package Manager.
The software center is not a very useful way of managing packages. If you use the synaptic package manager you will find two packages, the domainjoin-gui and likewise-open and that's all you need to do.
You will also need to be certain that your DNS is correctly pointing to your domain controller as your DNS and that you have your search domain specified properly. AD is VERY picky about this.
Finally, be sure that you have removed the references to mdns and mdns4_minimal from your nsswitch.conf's hosts entry as I'm pretty sure you're not using multicast dns.
gsrkashyap
February 24th, 2011, 05:43 AM
having the dns server in /etc/reslov.conf file in the below format solved my issue.
nameserver xxx.xxx.xxx.xxx
Roasted
February 25th, 2011, 06:02 PM
No go here. In my /etc/resolv.conf I have an entry that says to be auto generated by NetworkManager. However, the nameserver entries it has listed ARE our legit DNS servers, so there's nothing for me to change, yet I'm getting the same error when trying to join Ubuntu to the domain.
Any insight?
_UsUrPeR_
February 25th, 2011, 06:09 PM
I think I figured out what was wrong with my specific user's problems. Their domain name (user@reallylongextraneousname.com) was really long, and the domain name was being truncated. In order to resolve the problem, I had to have the users put in their full domain manually instead of having it auto completed.
Roasted
February 25th, 2011, 06:59 PM
Well, that's not a solution to my issue, as our domain name is quite short. I am receiving this error now:
1225 (0x4C9) ERROR_CONNECTION_REFUSED - Unknown Error.
This is in terminal when I am running sudo domainjoin-cli join domain my_user
EDIT - Found the solution on Likewise forums:
Same thing happened to me on an Ubuntu 10.04 that was renamed, all kinds of nasty lw_errors after that. I couldn’t log in with the GUI or command line. Oddly enough I could log in by starting a ssh session from another host : ssh domainname\\username@host
At first I tried deleting lsass-adcache.db but that wasn’t good enough.
I fixed it by stopping lsassd,
Then removing all the the likewise db files from /var/lib/likewise-open5/db/
Then start lsassd and join the domain again.
No errors this time.
I just hope we don't have to go through that EACH time we join one to the domain. There might be hundreds of systems...
galen666
March 10th, 2011, 02:59 AM
Hi,
I have the same problem as many others. I've tried some fixes but nothing works:
- Upgrading to what I think is the newest version of likewise (6.0.0.8330).
- Editing /etc/nsswitch.conf per https://bugs.launchpad.net/ubuntu/+source/likewise-open/+bug/561878
- Patch openldap per http://ubuntuforums.org/showthread.php?t=1613973
- Configuring a static IP
- Check DNS settings (they look fine)
- Tried domainjoin via both cli and gui (same error)
- Checked that the time is in sync (looks right)
My issue seems to be that the client can't find the LDAP server.
I'm running 10.10
uname -ovr
2.6.35-27-generic #48-Ubuntu SMP Tue Feb 22 20:25:46 UTC 2011 GNU/Linux
sudo domainjoin-cli --loglevel info --log . join my.company.domain.com username
Joining to AD Domain: my.company.domain.com
With Computer DNS Name: computername.my.company.domain.com
username@MY.COMPANY.DOMAIN.COM's password:
20110309172806:INFO:Running module join
20110309172806:INFO:Starting krb5.conf configuration (enabling)
20110309172806:INFO:Reading krb5 file /tmp/likewisetmpdHGRjM/etc/krb5.conf
20110309172806:WARNING:Short domain name not specified. Defaulting to 'my'
20110309172806:INFO:Creating krb5 stanza 'appdefaults'
20110309172806:INFO:Writing krb5 file /tmp/likewisetmpdHGRjM/etc/krb5.conf
20110309172806:INFO:File /tmp/likewisetmpdHGRjM/etc/krb5.conf modified
20110309172806:INFO:Finishing krb5.conf configuration
Error: Lsass Error [code 0x00080047]
40286 (0x9D5E) LW_ERROR_LDAP_SERVER_DOWN - Unknown error
20110309172807:ERROR:Lsass Error [CENTERROR_DOMAINJOIN_LSASS_ERROR]
40286 (0x9D5E) LW_ERROR_LDAP_SERVER_DOWN - Unknown error
Stack Trace:
main.c:938
main.c:479
djmodule.c:323
djauthinfo.c:843
djauthinfo.c:1187
Any suggestions?
hooks
March 15th, 2011, 10:30 PM
I had issues with Likewise for a long while as well and, after lots of searching and reading through posts, I finally got Likewise Open AND Likewise CIFS - the file server from Likewise that works with Likewise Open - to work together.
Long story short...
1. Don't use the Ubuntu repositories to install Likewise. Download it from the Likewise site.
2. Edit /etc/hosts and /etc/nsswitch
3. Join with the command line utility
/opt/likewise/bin/domainjoin-cli join [FQDN of your Domain] [Domain Admin Account Name]
4. Set /etc/init.d/srvsvcd to start automatically
sudo update-rc.d -f srvsvcd defaults
5. Create a startup script in /etc/init.d and have it run the Likewise DNS updater program, and make the script run on startup as well with update-rc.d
#!/bin/bash
/opt/likewise/bin/lw-update-dns
6. Create the share from the management console of a Windows machine as the Domain Admin
If you want more detail, check out the post on my blog: http://lordandhooks.com/blog/playing-with-likewise-open-cifs/
galen666
March 29th, 2011, 09:53 PM
Dunno if it makes a difference, but I'm installing 6.0
I had installed this from Likewise before, but looks like I installed LikewiseOpen-6.0.0.8330-linux-x86_64-rpm instead of the Debian/Ubuntu one. Anyway, I downloaded LikewiseOpen-6.0.0.8336-linux-amd64-deb this time and installed it:
sudo Downloads/LikewiseOpen-6.0.0.8336-linux-amd64-deb.sh
..creating directory, verifying archive, uncompressing, checking setup environment
Do you accept the terms of these licenses? (yes/no)
yes
License accepted.
Would you like to install now? (yes/no)
yes
Install started
You have the likewise-open package from Ubuntu installed.
Upgrading from the likewise-open package is not supported.
It isn't getting installed in /opt. The only version on my system is /usr/bin/domainjoin-cli. I have to wonder if this is getting installed at all.
I did have to fix some links:
sudo ln -fs /usr/lib/liblber-2.4.so.2 /usr/local/lib/
sudo ln -fs /usr/lib/libldap_r-2.4.so.2 /usr/local/lib/
..which resolved an error I was getting "domainjoin-cli: /usr/local/lib/liblber-2.4.so.2: no version information available (required by /usr/lib/likewise-open/libnetapi.so.0)"
Unfortunately it still is not working. Maybe adding the domain controller IP address to the hosts file had an effect, but I'm getting a slightly different error now.
Joining to AD Domain: my.company.domain.com
With Computer DNS Name: computer.my.company.domain.com
username@MY.COMPANY.DOMAIN.COM's password:
20110329133522:INFO:Running module join
20110329133523:INFO:Starting krb5.conf configuration (enabling)
20110329133523:INFO:Creating blank krb5.conf
20110329133523:INFO:Reading krb5 file /tmp/likewisetmpSPbrr5/etc/krb5.conf
20110329133523:WARNING:Short domain name not specified. Defaulting to 'my'
20110329133523:INFO:Creating krb5 stanza 'libdefaults'
20110329133523:INFO:Creating krb5 stanza 'domain_realm'
20110329133523:INFO:Creating krb5 stanza 'realms'
20110329133523:INFO:Creating krb5 stanza 'appdefaults'
20110329133523:INFO:Writing krb5 file /tmp/likewisetmpSPbrr5/etc/krb5.conf
20110329133523:INFO:File /tmp/likewisetmpSPbrr5/etc/krb5.conf modified
20110329133523:INFO:Finishing krb5.conf configuration
Error: Lsass Error [code 0x00080047]
2453 (0x995) NERR_DCNotFound - Unknown error
20110329133523:ERROR:Lsass Error [CENTERROR_DOMAINJOIN_LSASS_ERROR]
2453 (0x995) NERR_DCNotFound - Unknown error
Stack Trace:
main.c:938
main.c:479
djmodule.c:323
djauthinfo.c:843
djauthinfo.c:1187
Instead of getting LDAP server down, now I'm getting DC not found.
atworkwithjf
March 30th, 2011, 06:44 PM
It would appear from your post that the repository version is installed as well as the 6.0 version.
You need to remove the repository version using the synaptic package manager first and then you can install LikewiseOpen-6.0
If the repository version is present you will not have a successful install of 6.0.
galen666
March 30th, 2011, 07:27 PM
OK I see now that I was misreading the message I got after trying to install Likewise. I thought it said you successfully installed the software, but it was trying to tell me I had a previous version installed and was not allowed to upgrade from that version to this one.
Anyway, I uninstalled 5.4 and installed 6.0 successfully. However I still can't get domainjoin to work. It takes about 20 seconds now until I get the error below.
sudo domainjoin-cli --loglevel info --logfile . join my.company.domain.com username
<lots of messages, no errors, then...>
20110330111957:INFO:Running module join
Error: LW_ERROR_LDAP_CONSTRAINT_VIOLATION [code 0x00009d7b]
20110330112052:ERROR:LW_ERROR_LDAP_CONSTRAINT_VIOL ATION [LW_ERROR_LDAP_CONSTRAINT_VIOLATION]
Stack Trace:
/builder/src-buildserver/Platform-6.0/src/linux/domainjoin/domainjoin-cli/src/main.c:958
/builder/src-buildserver/Platform-6.0/src/linux/domainjoin/domainjoin-cli/src/main.c:514
/builder/src-buildserver/Platform-6.0/src/linux/domainjoin/libdomainjoin/src/djmodule.c:332
/builder/src-buildserver/Platform-6.0/src/linux/domainjoin/libdomainjoin/src/djauthinfo.c:723
/builder/src-buildserver/Platform-6.0/src/linux/domainjoin/libdomainjoin/src/djauthinfo.c:1140
FYI, my version of libldap:
dpkg --list | grep -i 'libldap'
ii libldap-2.4-2 2.4.23-0ubuntu3.4 OpenLDAP libraries
I found a message that said this happens when you don't have sufficient permissions to join a machine to the domain. However, I do this all the time with this account if the computer is running Windows. This isn't a test network, it is a company network and they do allow people to join laptops, etc. to the domain using their domain credentials.
atworkwithjf
March 30th, 2011, 07:38 PM
It would appear that you already have a machine object in AD for which this user does not have permission to make some modification. There's a host of parameters it may want to modify and cannot do so.
One way to validate this would be to either perform the join the domain with the Administrator account in AD or to delete the machine account and retry the join.
galen666
March 30th, 2011, 08:09 PM
I see what you mean. Based on the LDAP error codes (http://www.stone-ware.com/support/techdocs/kb/s2150/LDAP%20Error%20Codes.htm). More info here (http://download.oracle.com/javase/1.3/docs/api/javax/naming/directory/InvalidAttributeValueException.html).
I think I've run into something similar before when trying to rejoin a domain with the same machine name after installing a new OS. I might be able to work around it simply by changing the machine name.
OK this worked.
sudo vi /etc/hostname
<picked a new hostname>
sudo domainjoin-cli --loglevel info --logfile . join my.company.domain.com username
<about 90 seconds of waiting, then lots of messages followed by the important one:>
SUCCESS
I should have left the domain before formatting the drive and installing Ubuntu. It isn't critical at this point, but I could probably get my old hostname joined by using it on another computer then joining and leaving the domain, then leaving and joining again with this one. Not worth the trouble though.
Thanks for all your help atworkwithjf!
atworkwithjf
March 30th, 2011, 08:18 PM
Hey not a problem, that's what we're here for.
One cool thing you can do with new systems before you perform the domainjoin is to se the setname option:
> sudo /opt/likewise/bin/domainjoin-cli setname MYHOSTNAME
This will properly configure your hostname prior to join and can save you the step of manually setting it using the network manager or editing the conf files.
Neill_R
November 29th, 2011, 10:40 AM
bump
shurkes
May 2nd, 2012, 07:59 AM
can anyone help me?
just installed on my company notebook th 12.04 ubuntu and trying join the domain.
likewise is installed, getting the follwoing message after typing my password:
Error: LW_ERROR_LDAP_CONSTRAINT_VIOLATION [code 0x00009d7b]
Thanks
Powered by vBulletin® Version 4.2.2 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.