Yes, U-boats had active sonar (S-Garat) but not on all boats. I believe it was short range active pinging very similar to the active sonar sets on USN fleet boats in the Pacific. I know that the USN active gear could also listen on the high frequency side of things (all active systems have the potential to be used passively).
|